/[gentoo-x86]/eclass/mount-boot.eclass
Gentoo

Diff of /eclass/mount-boot.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.14 Revision 1.15
1# Copyright 1999-2008 Gentoo Foundation 1# Copyright 1999-2008 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/mount-boot.eclass,v 1.14 2008/06/02 15:38:52 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/mount-boot.eclass,v 1.15 2008/11/27 18:36:29 vapier Exp $
4# 4#
5# This eclass is really only useful for bootloaders. 5# This eclass is really only useful for bootloaders.
6# 6#
7# If the live system has a separate /boot partition configured, then this 7# If the live system has a separate /boot partition configured, then this
8# function tries to ensure that it's mounted in rw mode, exiting with an 8# function tries to ensure that it's mounted in rw mode, exiting with an
31 if [ -n "${proc_ro}" ]; then 31 if [ -n "${proc_ro}" ]; then
32 einfo 32 einfo
33 einfo "Your boot partition, detected as being mounted as /boot, is read-only." 33 einfo "Your boot partition, detected as being mounted as /boot, is read-only."
34 einfo "Remounting it in read-write mode ..." 34 einfo "Remounting it in read-write mode ..."
35 einfo 35 einfo
36 mount -o remount,rw /boot &>/dev/null 36 mount -o remount,rw /boot
37 if [ "$?" -ne 0 ]; then 37 if [ "$?" -ne 0 ]; then
38 eerror 38 eerror
39 eerror "Unable to remount in rw mode. Please do it manually!" 39 eerror "Unable to remount in rw mode. Please do it manually!"
40 eerror 40 eerror
41 die "Can't remount in rw mode. Please do it manually!" 41 die "Can't remount in rw mode. Please do it manually!"
45 einfo "Your boot partition was detected as being mounted as /boot." 45 einfo "Your boot partition was detected as being mounted as /boot."
46 einfo "Files will be installed there for ${PN} to function correctly." 46 einfo "Files will be installed there for ${PN} to function correctly."
47 einfo 47 einfo
48 fi 48 fi
49 elif [ -n "${fstabstate}" ] && [ -z "${procstate}" ]; then 49 elif [ -n "${fstabstate}" ] && [ -z "${procstate}" ]; then
50 mount /boot -o rw &>/dev/null 50 mount /boot -o rw
51 if [ "$?" -eq 0 ]; then 51 if [ "$?" -eq 0 ]; then
52 einfo 52 einfo
53 einfo "Your boot partition was not mounted as /boot, but portage" 53 einfo "Your boot partition was not mounted as /boot, but portage"
54 einfo "was able to mount it without additional intervention." 54 einfo "was able to mount it without additional intervention."
55 einfo "Files will be installed there for ${PN} to function correctly." 55 einfo "Files will be installed there for ${PN} to function correctly."

Legend:
Removed from v.1.14  
changed lines
  Added in v.1.15

  ViewVC Help
Powered by ViewVC 1.1.20