openSUSE / jeos-firstboot

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

Evaluate ConditionFirstBoot=yes #98

Open Vogtinator opened 2 years ago

Vogtinator commented 2 years ago

Currently jeos-firstboot.service runs iff /var/lib/YaST2/reconfig_system exists, which means that the file has to be created first.

For many image builds, systemd's built-in ConditionFirstBoot is sufficient and we can make use of that as well.

To still allow reconfiguration of the system and drop-in compatibility with YaST2-Firstboot.service we can try to use ConditionFirstBoot=|yes alongside ConditionPathExists=|/var/lib/YaST2/reconfig_system.