openSUSE / jeos-firstboot

Lightweight firstboot wizard systemd service for SLE and openSUSE JeOS Images
MIT License
14 stars 13 forks source link

Documentaion on firstboot.conf and exporting #85

Closed kagehisa closed 2 years ago

kagehisa commented 2 years ago

I'm planning to use JeOS for our HyperV based environment instead of regular SLES images. Mostly because of the here mentioned possibility to configure most settings with a config file for firstboot. Now that I'm playing around with it there is no real documentation on how to export a given configuration or how to set a password or configure the network via the config file. Is there any Information on this?

Vogtinator commented 2 years ago

The documentation is the example config file:

https://github.com/openSUSE/jeos-firstboot/blob/master/files/usr/share/defaults/jeos-firstboot.conf

Just put any config into /etc/defaults/jeos-firstboot.conf or copy the whole file.

kagehisa commented 2 years ago

Ok so there is no way to configure the network settings vie the config file?

Vogtinator commented 2 years ago

No, but you can create the /etc/sysconfig/network/ifcfg-* file directly instead.

kagehisa commented 2 years ago

Ok, thanks for the help.

Vogtinator commented 2 years ago

I should mention though that jeos-firstboot tries to create a DHCP config for all interfaces which get an IP over DHCP successfully, so that might interfere in some setups. Maybe there should be an option to disable that or jeos-firstboot should just ignore interfaces with an existing config (or both).

kagehisa commented 2 years ago

Ok, that explains why configure network via jeos-config does nothing in my case..