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

Other ideas, improvements or even dreams #119

Open
dgdavid opened this issue Jan 18, 2021 · 5 comments
Open

Other ideas, improvements or even dreams #119

dgdavid opened this issue Jan 18, 2021 · 5 comments
Labels
feedback Discussion or proposal (not a bug)

Comments

@dgdavid
Copy link
Member

dgdavid commented Jan 18, 2021

Context

Going through the example included in SLES (see #115)

Ideas

Dreams

  • To use a more readable configuration/description file. E.g., YAML

     ---    
     layout: steps
     stage: normal
     workflow: 
       - language_and_keyboard:
           - title: 'Select your preferred language and keyboard layout'
       - welcome:
       - timezone:
       - user:
           - title: 'Create your user!'
           - autologin: false
           - root: false
         

    Some tools like Docker, Ansible and Kubernetes use it for their configuration files. Even there are tools for validating them, as for example https://www.kubeval.com/

@lslezak
Copy link
Member

lslezak commented Jan 19, 2021

More Ideas

  • Add a command line tool for enabling/disabling the firstboot module.

    Currently you have to touch the /var/lib/YaST2/reconfig_system file to activate the firstboot after boot. That's not much user friendly and leaks the implementation detail. It would be nice to have a command line tool which would work like this:

    • firstboot_config enable - enable firstboot (create the /var/lib/YaST2/reconfig_system file)
    • firstboot_config disable - disable firstboot (remove the /var/lib/YaST2/reconfig_system file if it exists)
    • firstboot_config status - print the current status (enabled/disabled)

    Later we could add some more commands like
    • firstboot_config validate - validate the XML config file (/etc/YaST2/firstboot.xml)

@dgdavid
Copy link
Member Author

dgdavid commented Jan 19, 2021

More Ideas

* Add a command line tool for enabling/disabling the firstboot module.
  Currently you have to touch the `/var/lib/YaST2/reconfig_system` file to activate the firstboot after boot. That's not much user friendly and leaks the implementation detail. It would be nice to have a command line tool which would work like this:
  
  * `firstboot_config enable` - enable firstboot (create the `/var/lib/YaST2/reconfig_system` file)
  * `firstboot_config disable` - disable firstboot (remove the `/var/lib/YaST2/reconfig_system` file if it exists)
  * `firstboot_config status` - print the current status (enabled/disabled)
  
  
  Later we could add some more commands like
  
  * `firstboot_config validate` - validate the XML config file (`/etc/YaST2/firstboot.xml`)

Even without using the _. I mean, simply yast firstboot enable or similar.

Anyway, good point! Thanks.

@joseivanlopez
Copy link
Contributor

More Ideas

* Add a command line tool for enabling/disabling the firstboot module.

This goes in the same direction as #116 (comment).

@wfeldt
Copy link
Member

wfeldt commented Jan 20, 2021

Why not simply systemctl firstboot enable. Isn't that what poeple are used to today?

@wfeldt
Copy link
Member

wfeldt commented Jan 20, 2021

And yes, full support for going YAML.

While it is kind of a fashion like XML 20 years before it is much more appealing to humans.

@ancorgs ancorgs added the feedback Discussion or proposal (not a bug) label Mar 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feedback Discussion or proposal (not a bug)
Projects
None yet
Development

No branches or pull requests

5 participants