mudler / mudler/yip

Cannot use Cloud-Init or YIP modules to set Keyboard Layout

Open
#169 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
113
Forks
34
Avg merge
14h 10m
Merged PRs (30d)
5

Description

I'm trying to use the cloud-config (following the doc) to boot and configure my edge-node with KairOS.

What in this case I would like to do, is to use cloud-config file to preconfigure the keyboard language. To do so, i've tried two configuration.

In the first one, i've tried to follow yip documentation, using ' systemd_firstboot' as follow:

cloud-config1.yaml

      # cloud-config

      install: 
        ....
      
      setup:
          - name: setting up keyboard language
            systemd_firstboot:
              keymap: it
      
      runcmd:
         ....

      stages:
         ....

Unluckly, this configuration didn't work, but this is not too bad because "systemd_firstboot" should works only for the first boot of the node, while in my use-case i would like to change keyboard layout as needed (with a bash script that update the relevant cloud-config field).

So i've tried another configuration, this time following the 'keyboard' cloud-init module (here) as shown below:

cloud-config.yaml

      #cloud-config

      install:
       .....
      
      keyboard:
        layout: it
      
      runcmd:
        ....
     
      stages:
        ....

Again it didn't work.

In order to accomplish what i would like to do, i'm using the following workaround:

 # cloud-config

 install: 
   ....
 
 runcmd: 
   ....

 stages:
    network: 
        - name: keyboard Setup
          commands:
            - sudo loadkeys it
        ....

Am i missing something? Am i using the Cloud-Init and yip modules in a wrong way?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue with the supplied cloud-config1.yaml and cloud-config.yaml examples, comparing the systemd_firstboot and keyboard configurations with the working loadkeys command. Trace how YIP processes these cloud-config stages and modules; done means a supported configuration changes the keyboard layout without the workaround.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.