Commit e08c082e authored by Daniel Baumann's avatar Daniel Baumann

Adding preparations for booting through syslinux memdisk.

parent 39c40385
......@@ -151,6 +151,13 @@ fi
# Program: md5sum
copy_exec /usr/bin/md5sum /bin
# Program: memdisk
if [ -x /usr/bin/memdiskfind ]
then
copy_exec /usr/bin/memdiskfind
manual_add_modules phram mtdblock
fi
# Program: cpio
# busybox and klibc lacks --no-absolute-filenames and --sparse, needed for snapshots
if [ -e "${DESTDIR}/bin/cpio" ]
......
......@@ -1704,6 +1704,20 @@ mountroot ()
# Do a local boot from hd
livefs_root=${ROOT}
else
if [ -x /usr/bin/memdiskfind ]
then
MEMDISK=$(/usr/bin/memdiskfind)
if [ $? -eq 0 ]
then
# We found a memdisk, set up phram
modprobe phram phram=memdisk,${MEMDISK}
# Load mtdblock, the memdisk will be /dev/mtdblock0
modprobe mtdblock
fi
fi
# Scan local devices for the image
i=0
while [ "$i" -lt 60 ]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment