Support the /boot/coreos/first_boot flag file

If a user or old software creates the flag file on the old CoreOS location,
nothing would happen.
Check the old location, too, so that Ignition is rerun.
This commit is contained in:
Kai Lüke 2020-05-20 19:08:28 +02:00
parent 76abe2e8c5
commit 15681e1d77
No known key found for this signature in database
GPG Key ID: E5601DA3A1D902A8

View File

@ -69,6 +69,9 @@ fi
if [ -f "($root)/flatcar/first_boot" ]; then if [ -f "($root)/flatcar/first_boot" ]; then
set first_boot="flatcar.first_boot=detected" set first_boot="flatcar.first_boot=detected"
fi fi
if [ -f "($root)/coreos/first_boot" ]; then
set first_boot="flatcar.first_boot=detected"
fi
# Determine if the disk GUID needs to be randomized. # Determine if the disk GUID needs to be randomized.
search --no-floppy --set randomize_disk_guid \ search --no-floppy --set randomize_disk_guid \