Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 25274 Details for
Bug 40987
Gentoo should be able to boot with an empty /dev/
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
no-dev.patch
no-dev.patch (text/plain), 1.74 KB, created by
SpanKY
on 2004-02-09 10:47:29 UTC
(
hide
)
Description:
no-dev.patch
Filename:
MIME Type:
Creator:
SpanKY
Created:
2004-02-09 10:47:29 UTC
Size:
1.74 KB
patch
obsolete
>--- rc 2004-02-08 23:55:08.000000000 -0500 >+++ rc.new 2004-02-09 13:46:15.359769640 -0500 >@@ -17,13 +17,21 @@ > # if we only check $? for instance ... We thus need to [ -n "${errstr}" ] > # as well. > >- errstr="$((eval $*) 2>&1 >/dev/null)" >+ if [ -c /dev/null ] ; then >+ errstr="$((eval $*) 2>&1 > /dev/null)" >+ else >+ errstr="$((eval $*) 2>&1)" >+ fi > retval=$? > if [ "${retval}" -ne 0 ] || \ > ([ "${*/mount/}" != "$*" -a -n "${errstr}" ]) > then > # Progressbar begin >- rc_splash "stop" &> /dev/null & >+ if [ -c /dev/null ] ; then >+ rc_splash "stop" >& /dev/null & >+ else >+ rc_splash "stop" >+ fi > # Progressbar end > > echo -e "${ENDCOL}${NORMAL}[${BAD} oops ${NORMAL}]" >@@ -36,7 +44,11 @@ > echo > /sbin/sulogin ${CONSOLE} > einfo "Unmounting filesystems" >- /bin/mount -a -o remount,ro & >/dev/null >+ if [ -c /dev/null ] ; then >+ /bin/mount -a -o remount,ro & >/dev/null >+ else >+ /bin/mount -a -o remount,ro >+ fi > einfo "Rebooting" > /sbin/reboot -f > fi >@@ -162,6 +174,11 @@ > # Setup initial $PATH just in case > PATH="/bin:/sbin:/usr/bin:/usr/sbin:${PATH}" > >+ if [ ! -c /dev/null ] ; then >+ echo -e "${BAD}Your root filesystem is missing /dev/null${NORMAL}" >+ echo -e "${BAD}You should really get this sorted out.${NORMAL}" >+ fi >+ > echo > echo -e "${GOOD}Gentoo Linux${GENTOO_VERS}; ${BRACKET}http://www.gentoo.org/${NORMAL}" > echo -e " Copyright 2001-2003 Gentoo Technologies, Inc.; Distributed under the GPL" >--- functions.sh 2004-02-08 14:45:52.000000000 -0500 >+++ functions.sh.new 2004-02-09 13:46:19.192187024 -0500 >@@ -440,7 +439,11 @@ > else > retval="$1" > >- rc_splash "stop" &>/dev/null & >+ if [ -c /dev/null ] ; then >+ rc_splash "stop" &>/dev/null & >+ else >+ rc_splash "stop" >+ fi > > if [ "$#" -ge 2 ] > then
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 40987
:
25274
|
29426