diff options
author | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2012-10-07 23:01:52 +0000 |
---|---|---|
committer | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2012-10-07 23:01:52 +0000 |
commit | 1be06262730011513b009272a5793f6c825bb5a1 (patch) | |
tree | 9844415b3e18c19f577fba6d3d43a98b176270de /target/linux/x86/base-files/lib | |
parent | 3d4fd91c667bc1b3bf13932675913f841c3c4ae5 (diff) |
x86: add grub2 iso support
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33639 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/x86/base-files/lib')
-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 000000000..beff6eba0 --- /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 |