Jul 19 2002: patches updated
The following is the procedure I use for installation of Slackware Linux 8.0 in the User-mode Linux. If you try it, please let me know whether it worked for you.mkdir new mount inst_fs_slackware_8_0 new -t minix -o loopOtherwise create 4MB file inst_fs_slackware_8_0, create ext2 file system on it, mount it to new, mount the color file to orig and copy everything from orig to new:
dd if=/dev/zero of=inst_fs_slackware_8_0 bs=1M count=4 mke2fs -F inst_fs_slackware_8_0 mkdir new mount inst_fs_slackware_8_0 new -t ext2 -o loop mkdir orig mount color orig -t minix -o loop cp -a orig/* new/ umount orig rmdir orig
patch new/usr/lib/setup/fdsetup uml.fdsetup.patchand optionally (for CD-ROM auto-detection)
patch new/usr/lib/setup/INSCD uml.INSCD.patch
cd new/dev for i in 0 1 2 3 4 5 6 7; do mknod ubd$i b 98 $i; done cd ../..
dd if=/dev/zero of=slackware.root bs=1M count=512
./linux mem=64M ubd0=slackware.root ubd1=inst_fs_slackware_8_0 \ ubd2r=/dev/cdrom root=/dev/ubd1 rw devfs=nomountand proceed with Slackware installation as usual. If the color menu doesn't work try export TERM=vt100 before running setup. There is no need to create partitions with fdisk, the whole slackware.root file will be used as a root partition. CD-ROM can be auto-detected.
mkdir mnt mount slackware.root mnt -t ext2 -o loopand create /dev/ubd? special files and install kernel modules (see uml documentation). It is not a bad idea to comment out some getty lines in /etc/inittab. I don't use devfs, so I don't know exactly what to do to make it work. See this.
./linux mem=64M ubd0=slackware.root devfs=nomount