Add netboot generator script
This commit is contained in:
7
dracut/vmklive/mtd.sh
Executable file
7
dracut/vmklive/mtd.sh
Executable 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
|
Reference in New Issue
Block a user