summaryrefslogtreecommitdiff
path: root/target/linux/x86/base-files
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2012-10-07 23:01:52 +0000
committerFelix Fietkau <nbd@openwrt.org>2012-10-07 23:01:52 +0000
commita1bcd25082fd6780d6eb9184acb1813bf723841f (patch)
tree0b1632d204e304ccf1e2596952e4910f1e5d7865 /target/linux/x86/base-files
parent53cc34e517329fbc2ce90a356e2f97f7aa727c69 (diff)
downloadmtk-20170518-a1bcd25082fd6780d6eb9184acb1813bf723841f.zip
mtk-20170518-a1bcd25082fd6780d6eb9184acb1813bf723841f.tar.gz
mtk-20170518-a1bcd25082fd6780d6eb9184acb1813bf723841f.tar.bz2
x86: add grub2 iso support
SVN-Revision: 33639
Diffstat (limited to 'target/linux/x86/base-files')
-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 0000000..beff6eb
--- /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