Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 4101 Details for
Bug 7903
small eclass task -> bootloader.eclass
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
revised mount-boot.diff
mount-boot.diff (text/plain), 2.75 KB, created by
Maurizio Disimino
on 2002-09-23 09:02:36 UTC
(
hide
)
Description:
revised mount-boot.diff
Filename:
MIME Type:
Creator:
Maurizio Disimino
Created:
2002-09-23 09:02:36 UTC
Size:
2.75 KB
patch
obsolete
>--- mount-boot.eclass.orig Mon Sep 23 16:00:54 2002 >+++ mount-boot.eclass Mon Sep 23 16:08:06 2002 >@@ -1,6 +1,6 @@ > # Copyright 1999-2000 Gentoo Technologies, Inc. > # Distributed under the terms of the GNU General Public License, v2 or later >-# $Header: /home/cvsroot/gentoo-x86/eclass/mount-boot.eclass,v 1.2 2002/09/22 21:02:08 woodchip Exp $ >+# $Header: /home/cvsroot/gentoo-x86/eclass/mount-boot.eclass,v 1.1 2002/09/20 18:38:22 woodchip Exp $ > > ECLASS=mount-boot > INHERITED="$INHERITED $ECLASS" >@@ -11,37 +11,40 @@ > > local fstabstate="$(cat /etc/fstab | awk '!/^#|^[[:blank:]]+#/ {print $2}' | egrep "/boot" )" > local procstate="$(cat /proc/mounts | awk '{print $2}' | egrep "/boot" )" >+ local proc_ro="$(cat /proc/mounts | awk '{ print $2, $4 }' | sed -n '/\/boot/{ /[ ,]\?ro[ ,]\?/p }' )" > > if [ -n "${fstabstate}" ] && [ -n "${procstate}" ]; then >- if [ -n "`cat /proc/mounts | awk '{ print $2, $4 }' | sed -n '/\/boot/{ /[ ,]ro/p }'`" ]; then >+ if [ -n "${proc_ro}" ]; then >+ echo > einfo "Your boot partition, detected as being mounted as /boot, is read-only" > einfo "Remounting it in read-write mode" >- sleep 1; echo -ne "\a"; sleep 1; echo -ne "\a" >+ sleep 1; echo -ne "\a"; sleep 1; echo -e "\a" > mount -o remount,rw /boot &>/dev/null > if [ "$?" -ne 0 ]; then > eerror; eerror "Unable to remount in rw mode. Please do it manually" ; eerror >- sleep 1; echo -ne "\a"; sleep 1; echo -ne "\a" >+ sleep 1; echo -ne "\a"; sleep 1; echo -e "\a" > die "Can't remount in rw mode. Please do it manually" > fi > else > echo > einfo "Your boot partition was detected as being mounted as /boot." > einfo "Files will be installed there for ${PN} to function correctly." >- sleep 1; echo -ne "\a"; sleep 1; echo -ne "\a" >+ sleep 1; echo -ne "\a"; sleep 1; echo -e "\a" > fi > elif [ -n "${fstabstate}" ] && [ -z "${procstate}" ]; then >- mount /boot &>/dev/null >+ mount /boot -o rw &>/dev/null > if [ "$?" -eq 0 ]; then > echo >- einfo "Your boot partition was not mounted as /boot, but portage was able to mount" >- einfo "it without additional intervention." >+ einfo "Your boot partition was not mounted as /boot, but portage" >+ einfo "was able to mount it without additional intervention." > einfo "Files will be installed there for ${PN} to function correctly." >- sleep 1; echo -ne "\a"; sleep 1; echo -ne "\a" >+ sleep 1; echo -ne "\a"; sleep 1; echo -e "\a" > else > echo >+ eerror "Cannot mount automatically your boot partition." > eerror "Your boot partition has to be mounted on /boot before the installation" > eerror "can continue. ${PN} needs to install important files there." >- sleep 1; echo -ne "\a"; sleep 1; echo -ne "\a" >+ sleep 1; echo -ne "\a"; sleep 1; echo -e "\a" > die "Please mount your /boot partition." > fi > else
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 Raw
Actions:
View
Attachments on
bug 7903
:
3946
|
3993
|
4008
|
4026
|
4052
|
4100
| 4101 |
4106