Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fixup noreboot service
Signed-off-by: Antonio Murdaca <runcom@linux.com>
  • Loading branch information
runcom committed Feb 24, 2022
1 parent 527b9ca commit 7d85f66
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions dracut/systemd/coreos-installer-generator
Expand Up @@ -48,10 +48,12 @@ if [ -n "$(karg coreos.inst.install_dev)" ]; then
> /run/coreos-installer-poweroff

if karg_bool coreos.inst.skip_reboot; then
> /run/coreos-installer-noreboot
rm -rf /run/coreos-installer-poweroff
fi
if karg_bool coreos.inst.reboot; then
> /run/coreos-installer-reboot
rm -rf /run/coreos-installer-noreboot
rm -rf /run/coreos-installer-poweroff
fi
fi
Expand Down
2 changes: 1 addition & 1 deletion dracut/systemd/coreos-installer-noreboot.service
Expand Up @@ -2,7 +2,7 @@
Description=Give Login Shell After CoreOS Installer
Requires=coreos-installer.service
After=coreos-installer.service
ConditionPathExists=!/run/coreos-installer-reboot
ConditionPathExists=/run/coreos-installer-noreboot
ConditionKernelCommandLine=coreos.inst.install_dev

[Service]
Expand Down

0 comments on commit 7d85f66

Please sign in to comment.