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:
Chris Novakovic 2017-07-11 00:00:51 +01:00
parent 59788e2c1e
commit dac5caa67c

View File

@ -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