summaryrefslogtreecommitdiffstats
path: root/target/linux/x86/base-files/lib/preinit
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2012-10-07 23:01:52 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2012-10-07 23:01:52 +0000
commit1be06262730011513b009272a5793f6c825bb5a1 (patch)
tree9844415b3e18c19f577fba6d3d43a98b176270de /target/linux/x86/base-files/lib/preinit
parent3d4fd91c667bc1b3bf13932675913f841c3c4ae5 (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/preinit')
-rw-r--r--target/linux/x86/base-files/lib/preinit/20_check_iso5
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