Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 29162 - Stage 1 install problem with /proc
Summary: Stage 1 install problem with /proc
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High minor
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
: 36866 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-09-19 19:07 UTC by Richard Smith
Modified: 2004-06-30 07:43 UTC (History)
4 users (show)

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 Richard Smith 2003-09-19 19:07:34 UTC
I have just performed a stage 1 install and found two related problems:

1. The /proc directory was not present at first boot, which prevented /proc from
being mounted.  It is there in the stage 1 tarball, so I have no idea where it
went between untar and first boot.

2. More serious, the during bootup, this problem is not reported.  Instead the
computer simply hangs.  In the /sbin/rc script is the line:
try try mount -n -t proc none /proc
If /proc does not exist, this line hangs, and does not output any error. 
Therefore it took me quite a while to realise what the problem was.  This line
should be fixed to output errors from the mount command.


Reproducible: Always
Steps to Reproduce:
Comment 1 Martin Schlemmer (RETIRED) gentoo-dev 2003-10-13 14:03:11 UTC
Below is the code for try, which means you should (and I do here in testing)
see an error message - any reason you would not see it ?

--
try() {
        local errstr=
        local retval=0
        # This works fine in test, but real life booting, fails for mounting
/proc
        # if we only check $? for instance ...  We thus need to [ -n "${errstr}"
]
        # as well.
         
        errstr="$((eval $*) 2>&1 >/dev/null)"
        retval=$?
        if [ "${retval}" -ne 0 ] || \
           ([ "${*/mount/}" != "$*" -a -n "${errstr}" ])
        then
                echo -e "${ENDCOL}${NORMAL}[${BAD} oops ${NORMAL}]"
                echo
                eerror "The \"${1}\" command failed with error:"
                echo
                echo "${errstr#*: }"
                echo
                eerror "Since this is a critical task, startup cannot continue."
                echo
                /sbin/sulogin ${CONSOLE}
                einfo "Unmounting filesystems"
                /bin/mount -a -o remount,ro & >/dev/null
                einfo "Rebooting"
                /sbin/reboot -f
        fi
         
        return ${retval}
}
Comment 2 Johannes Niess 2003-12-21 04:19:21 UTC
I can confirm that. It hangs with "mounting /proc" but no "Ok". I'm sure it is the "try try mount -n -t proc none /proc" line because I added a "echo debug" line directly after that into /sbin/rc. It did not show up without a /proc dir, but showed up after adding it by hand, resulting in successfull boot.

Actually, this should be split into 2 bugs:
1) /proc gets lost somewhere in the install skripts.
2) we fail to detect the missing mount point on boot.

I've not thought about the double "try", but it might eat the return code from the mount command. Bug 2) should be testable by "rmdir /mnt/gentoo/proc" from e.g. Knoppix and rebooting into Gentoo.

There is justification to set an elevated priority for Bug 1).
Comment 3 SpanKY gentoo-dev 2003-12-30 21:13:32 UTC
*** Bug 36866 has been marked as a duplicate of this bug. ***
Comment 4 Benjamin Judas (RETIRED) gentoo-dev 2003-12-30 21:48:32 UTC
Problem also experienced with Gentoo-2004.0. See duplicate (http://bugs.gentoo.org/show_bug.cgi?id=36866)
Comment 5 Aron Griffis (RETIRED) gentoo-dev 2004-06-30 07:43:07 UTC
I believe this was fixed in 2004.1 when I repaired the double-try stuff in /sbin/rc.  Please reopen if the problem persists with current stages.