mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 05:36:47 +00: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:
parent
59788e2c1e
commit
dac5caa67c
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user