Added a patch for only [re]mounting /boot when installation is required. Patch
authorTim Yamin <plasmaroo@gentoo.org>
Wed, 21 Jul 2004 18:43:29 +0000 (18:43 +0000)
committerTim Yamin <plasmaroo@gentoo.org>
Wed, 21 Jul 2004 18:43:29 +0000 (18:43 +0000)
from bug #57836 by Martin "Parmus" Parm.

git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@117 67a159dc-881f-0410-a524-ba9dfbe2cb84

genkernel

index e768ff697de6c128261af3e2fd9e12bb48ef186d..3b4ed313dad54ca55e5b369d7e85b884fe594d55 100755 (executable)
--- a/genkernel
+++ b/genkernel
@@ -77,23 +77,28 @@ then
 fi
 
 # Check /boot is mounted
-if ! egrep -q ' /boot ' /proc/mounts
+if isTrue ${CMD_NOINSTALL}
 then
-       if egrep -q '^[^#].+    /boot   ' /etc/fstab
+       isTrue ${MOUNTBOOT} && print_info 2 'Skipping automatic mount of boot'
+else
+       if ! egrep -q ' /boot ' /proc/mounts
        then
-               if isTrue ${MOUNTBOOT}
+               if egrep -q '^[^#].+    /boot   ' /etc/fstab
                then
-                       if ! mount /boot
+                       if isTrue ${MOUNTBOOT}
                        then
-                               print_warning 1 "${BOLD}WARNING${NORMAL}: Failed to mount /boot!"
-                               echo
+                               if ! mount /boot
+                               then
+                                       print_warning 1 "${BOLD}WARNING${NORMAL}: Failed to mount /boot!"
+                                       echo
+                               else
+                                       print_info 1 'mount: /boot mounted successfully!'
+                               fi
                        else
-                               print_info 1 'mount: /boot mounted successfully!'
+                               print_warning 1 "${BOLD}WARNING${NORMAL}: No mounted /boot partition detected!"
+                               print_warning 1 '         Run ``mount /boot`` to mount it!'
+                               echo
                        fi
-               else
-                       print_warning 1 "${BOLD}WARNING${NORMAL}: No mounted /boot partition detected!"
-                       print_warning 1 '         Run ``mount /boot`` to mount it!'
-                       echo
                fi
        elif isBootRO
        then