aboutsummaryrefslogtreecommitdiffstats
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
commitea575c9316eced5a60be4c05aab6ece3cf4b5eb6 (patch)
tree9844415b3e18c19f577fba6d3d43a98b176270de /target/linux/x86/base-files
parent7f67793f59a9cd42dd670e618cdc5d3316515e6f (diff)
downloadupstream-ea575c9316eced5a60be4c05aab6ece3cf4b5eb6.tar.gz
upstream-ea575c9316eced5a60be4c05aab6ece3cf4b5eb6.tar.bz2
upstream-ea575c9316eced5a60be4c05aab6ece3cf4b5eb6.zip
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')
-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 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