forked from pool/ignition
c489446194
- Remove /var/lib/YaST2/reconfig_system if a config was provided: * ignition-remove-reconfig_system.service OBS-URL: https://build.opensuse.org/request/show/962210 OBS-URL: https://build.opensuse.org/package/show/devel:kubic:ignition/ignition?expand=0&rev=86
22 lines
667 B
Desktop File
22 lines
667 B
Desktop File
[Unit]
|
|
Description=Disable firstboot wizard if ignition ran
|
|
|
|
# Make sure ignition completed
|
|
After=ignition-complete.target
|
|
# Don't race with combustion
|
|
After=combustion.service
|
|
|
|
# Make sure /sysroot/etc and var are available
|
|
After=initrd-parse-etc.service
|
|
RequiresMountsFor=/sysroot/etc
|
|
RequiresMountsFor=/sysroot/var
|
|
|
|
ConditionPathExists=/sysroot/etc/.ignition-result.json
|
|
ConditionPathExists=/sysroot/var/lib/YaST2/reconfig_system
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
RemainAfterExit=yes
|
|
# Use grep to avoid pulling in jq
|
|
ExecStart=/bin/sh -ec 'if grep -q "\\"userConfigProvided\\":.*true" /sysroot/etc/.ignition-result.json; then rm /sysroot/var/lib/YaST2/reconfig_system; fi'
|