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
This commit is contained in:
Christian Neukirchen
2015-05-02 01:01:17 +02:00
committed by Juan RP
parent 1571ef8d44
commit 929175a025
5 changed files with 43 additions and 1 deletions

7
dracut/mtd.sh Executable file
View File

@@ -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