Skip to content

Commit

Permalink
Update dracut/99setup-root/initrd-setup-root
Browse files Browse the repository at this point in the history
Co-authored-by: Krzesimir Nowak <[email protected]>
  • Loading branch information
pothos and krnowak committed Feb 27, 2023
1 parent 024f3df commit 4c8c76b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dracut/99setup-root/initrd-setup-root
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ function selectiveosreset() {
}

# Do the selective OS reset as prepared by flatcar-reset
if [ "$(cat /sysroot/selective-os-reset 2>/dev/null || true)" != "" ]; then
if [ -s /sysroot/selective-os-reset ]; then
walksysroot / selectiveosreset -regextype egrep -not -regex "$(cat /sysroot/selective-os-reset)" || true
rm -f /sysroot/selective-os-reset
# Always remove the machine-id file because otherwise it's not a first boot.
Expand Down

0 comments on commit 4c8c76b

Please sign in to comment.