Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
PaSharks9 opened this issue Aug 2, 2024 · 0 comments
Open

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

PaSharks9 opened this issue Aug 2, 2024 · 0 comments

Comments

@PaSharks9
Copy link

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?

@PaSharks9 PaSharks9 changed the title Cannot use Cloud-Config modules to set Keyboard Layout Cannot use Cloud-Config or YIP modules to set Keyboard Layout Aug 2, 2024
@PaSharks9 PaSharks9 changed the title Cannot use Cloud-Config or YIP modules to set Keyboard Layout Cannot use Cloud-Init or YIP modules to set Keyboard Layout Aug 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant