mirror of
https://github.com/flatcar/scripts.git
synced 2025-11-28 22:12:10 +01:00
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:
parent
76abe2e8c5
commit
15681e1d77
@ -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 \
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user