From 1be06262730011513b009272a5793f6c825bb5a1 Mon Sep 17 00:00:00 2001 From: nbd Date: Sun, 7 Oct 2012 23:01:52 +0000 Subject: x86: add grub2 iso support git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33639 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- target/linux/x86/base-files/lib/preinit/20_check_iso | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 target/linux/x86/base-files/lib/preinit/20_check_iso (limited to 'target/linux/x86/base-files/lib/preinit') 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 -- cgit v1.2.3