Open dgdavid opened 3 years ago
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
)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.
More Ideas
* Add a command line tool for enabling/disabling the firstboot module.
This goes in the same direction as https://github.com/yast/yast-firstboot/issues/116#issuecomment-762762488.
Why not simply systemctl firstboot enable
. Isn't that what poeple are used to today?
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.
Context
Going through the example included in SLES (see #115)
Ideas
To offer multiple examples, like we do with https://autoyast.github.io/.
Maybe having a "YaST Config Examples" site?
Dreams
To use a more readable configuration/description file. E.g.,
YAML
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/