summary refs log tree commit diff
path: root/dracut/mtd.sh
blob: 1d94a4e46a7d39dda56414103f6ca1eda72da14c (plain) (blame)
1
2
3
4
5
6
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