Hello, As I got strage freeze problems I hadn't with default slackware 8.0 kernel, I tryed to compile a new kernel with the same options as slack use. To reproduce the configuration; I'm obliged to desactivate tmpfs and devfs. So I looked at /sbin/rc script. The script is unable to manage both notmpfs and nodevfs options. To replace tmpfs, /dev/ram0 is used as a ramdisk but it cannot mount successfully /dev/ram0 if no devfs support is compiled in. Secondly, even if devfs is present, it cannot work because of the std error mkfs and dd are generating. (the line try dd if=/dev/zero of=/dev/ram0 bs=1k count=${svcsize} can do nothing but fail) Here is the output : platon:/tmp# try dd if=/dev/zero of=/dev/ram1 bs=1k count=4096 [ oops ] * The "dd" command failed with error: 4096+0 records in 4096+0 records out * Since this is a critical task, startup cannot continue. Give root password for maintenance (or type Control-D for normal startup): platon:~# The problem is located in the line local errstr="$((eval $*) 2>&1 >/dev/null)" in /sbin/rc Perhaps the line local errstr="$((eval $* 2> /dev/null) 2>&1 > /dev/null)" should be used instead, I didn't checked. I simply removed "try" occurences that were anoying me :o) Now, if I boot the kernel with gentoo=notmpfs, the /mnt/.init.d partition will run out of space an the boot seq. crashed. The next reboot, if I don't use the gentoo=notmpfs option, everything goes smoothly but, after issuing a mount command I can see that : /dev/ram0 on /mnt/.init.d type ext2 (rw) I should read tmpfs instead of ram0. Please, don't hesitate to contact me for any questions relating to this bug. Regards, Claer
That try stuff should just not check the stderr in all cases, but only when mounting stuff (mounting /proc fails sometimes without returning fail for some weird reason). The out of space error, is that the number of inodes was not enouth .. this I fixed by adding -i 1024 (create a inode for every 1k) to mke2fs command. All this is added to CVS, and will be in next baselayout.
Whoops, forgot the cannot mount ramdisk with not devfs problem.
Gentoo Linux; http://www.gentoo.org Copyright 2001 Gentoo Technologies, Inc.; Distributed under the GPL * Mounting /proc... [ ok ] * Mounting ramdisk 0 at /mnt/.init.d... [ ok ] * Caching service dependencies... [ ok ] * Activating swap... Hmm, looks fine to me ... Check that you have a populated /dev when not mounted as devfs.
Good work! The last part, was an error due to my modifications. I should read your scripts to learn more ;-) Claer