diff options
author | Christian Neukirchen <chneukirchen@gmail.com> | 2015-05-02 01:01:17 +0200 |
---|---|---|
committer | Juan RP <xtraeme@voidlinux.eu> | 2015-05-02 12:16:21 +0200 |
commit | 929175a025254315fd0773d1af23943233616db8 (patch) | |
tree | bc7b06a8b5c0ae4fcbeefa4600518b0df0acbf1e /dracut/mtd.sh | |
parent | 1571ef8d4495c61f7061996d78c5f45db590930b (diff) | |
download | hrmpf-929175a025254315fd0773d1af23943233616db8.tar.gz hrmpf-929175a025254315fd0773d1af23943233616db8.tar.xz hrmpf-929175a025254315fd0773d1af23943233616db8.zip |
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
Diffstat (limited to 'dracut/mtd.sh')
-rwxr-xr-x | dracut/mtd.sh | 7 |
1 files changed, 7 insertions, 0 deletions
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 |