mirror of
https://github.com/archr-linux/Arch-R.git
synced 2026-03-31 14:41:55 -07:00
initramfs: write /dev/.flash_netboot if /flash is a remote filesystem
The init script currently touches a file at /dev/.storage_netboot if /storage is a remote filesystem, so that scripts that run after the root filesystem has been switched can behave differently depending on whether /storage is mounted locally or remotely. Add similar functionality for /flash by touching /dev/.flash_netboot if it is a remote filesystem.
This commit is contained in:
@@ -1095,6 +1095,11 @@
|
||||
if [ "$UPDATE_DISABLED" = "yes" ] ; then
|
||||
echo "" > /sysroot/dev/.update_disabled
|
||||
fi
|
||||
|
||||
if [ "$FLASH_NETBOOT" = "yes" ] ; then
|
||||
echo "" > /sysroot/dev/.flash_netboot
|
||||
fi
|
||||
|
||||
# swap can not be used over nfs.(see scripts/mount-swap)
|
||||
if [ "$STORAGE_NETBOOT" = "yes" ] ; then
|
||||
echo "" > /sysroot/dev/.storage_netboot
|
||||
|
||||
Reference in New Issue
Block a user