Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 2439 - The gentoo=notmpfs parameter from lilo is not working
Summary: The gentoo=notmpfs parameter from lilo is not working
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-05-04 10:36 UTC by Claer
Modified: 2003-02-04 19:42 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Claer 2002-05-04 10:36:32 UTC
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
Comment 1 Martin Schlemmer (RETIRED) gentoo-dev 2002-05-11 20:36:35 UTC
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.
Comment 2 Martin Schlemmer (RETIRED) gentoo-dev 2002-05-11 20:38:26 UTC
Whoops, forgot the cannot mount ramdisk with not devfs problem.
Comment 3 Martin Schlemmer (RETIRED) gentoo-dev 2002-05-11 20:41:48 UTC
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.
Comment 4 Claer 2002-05-16 15:16:50 UTC
Good work!

The last part, was an error due to my modifications.

I should read your scripts to learn more ;-)


Claer