yast / yast-firstboot

YaST module firstboot
http://en.opensuse.org/Portal:YaST
GNU General Public License v2.0
1 stars 8 forks source link

Other ideas, improvements or even dreams #119

Open dgdavid opened 3 years ago

dgdavid commented 3 years ago

Context

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

Ideas

Dreams

lslezak commented 3 years ago

More Ideas

dgdavid commented 3 years ago

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 commented 3 years ago

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.

wfeldt commented 3 years ago

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

wfeldt commented 3 years ago

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.