/[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.13 Revision 1.14
1# Copyright 1999-2007 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.13 2007/05/25 05:04:08 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/mount-boot.eclass,v 1.14 2008/06/02 15:38:52 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
14 14
15mount-boot_mount_boot_partition() { 15mount-boot_mount_boot_partition() {
16 if [[ -n ${DONT_MOUNT_BOOT} ]] ; then 16 if [[ -n ${DONT_MOUNT_BOOT} ]] ; then
17 return 17 return
18 else 18 else
19 einfo 19 elog
20 einfo "To avoid automounting and autoinstalling with /boot," 20 elog "To avoid automounting and autoinstalling with /boot,"
21 einfo "just export the DONT_MOUNT_BOOT variable." 21 elog "just export the DONT_MOUNT_BOOT variable."
22 einfo 22 elog
23 fi 23 fi
24 24
25 # note that /dev/BOOT is in the Gentoo default /etc/fstab file 25 # note that /dev/BOOT is in the Gentoo default /etc/fstab file
26 local fstabstate=$(awk '!/^#|^[[:blank:]]+#|^\/dev\/BOOT/ {print $2}' /etc/fstab | egrep "^/boot$" ) 26 local fstabstate=$(awk '!/^#|^[[:blank:]]+#|^\/dev\/BOOT/ {print $2}' /etc/fstab | egrep "^/boot$" )
27 local procstate=$(awk '$2 ~ /^\/boot$/ {print $2}' /proc/mounts) 27 local procstate=$(awk '$2 ~ /^\/boot$/ {print $2}' /proc/mounts)

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

  ViewVC Help
Powered by ViewVC 1.1.20