From 929175a025254315fd0773d1af23943233616db8 Mon Sep 17 00:00:00 2001 From: Christian Neukirchen Date: Sat, 2 May 2015 01:01:17 +0200 Subject: Support for MEMDISK The .iso can now be booted using Grub (memdisk from Syslinux package): linux16 /memdisk initrd16 /path/to/iso As well as from Syslinux: LINUX memdisk INITRD path/to/iso --- dracut/mtd.sh | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 dracut/mtd.sh (limited to 'dracut/mtd.sh') diff --git a/dracut/mtd.sh b/dracut/mtd.sh new file mode 100755 index 0000000..1d94a4e --- /dev/null +++ b/dracut/mtd.sh @@ -0,0 +1,7 @@ +#!/bin/sh +MEMDISK=$(memdiskfind) +if [ "$MEMDISK" ]; then + modprobe phram phram=memdisk,$MEMDISK + modprobe mtdblock + printf 'KERNEL=="mtdblock0", RUN+="/sbin/initqueue --settled --onetime --unique /sbin/dmsquash-live-root /dev/mtdblock0"\n' >> /etc/udev/rules.d/99-live-squash.rules +fi -- cgit 1.4.1