diff options
Diffstat (limited to 'target/linux/x86/base-files')
-rw-r--r-- | target/linux/x86/base-files/lib/preinit/20_check_iso | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/target/linux/x86/base-files/lib/preinit/20_check_iso b/target/linux/x86/base-files/lib/preinit/20_check_iso new file mode 100644 index 0000000000..beff6eba09 --- /dev/null +++ b/target/linux/x86/base-files/lib/preinit/20_check_iso @@ -0,0 +1,5 @@ +check_for_iso() { + grep -qE '/dev/root.*iso9660' /proc/mounts && ramoverlay +} + +boot_hook_add preinit_mount_root check_for_iso |