]> Frank Brehm's Git Trees - config/helga/etc.git/commitdiff
saving uncommitted changes in /etc prior to emerge run
authorroot <root@helga.brehm-online.com>
Mon, 14 Mar 2016 23:38:44 +0000 (00:38 +0100)
committerroot <root@helga.brehm-online.com>
Mon, 14 Mar 2016 23:38:44 +0000 (00:38 +0100)
grub.d/10_linux
mtab

index 94fe619de4f38925b79fd415236f725f44cd2b90..0b2914f433f526901833f77ceec0b78003eebc44 100755 (executable)
@@ -147,18 +147,19 @@ EOF
 }
 
 machine=`uname -m`
-case "x$machine" in
+globs="$GRUB_LINUX_KERNEL_GLOBS"
+[ -z "$globs" ] && case "x$machine" in
     xi?86 | xx86_64)
-       list=
-       for i in /boot/vmlinuz-* /vmlinuz-* /boot/kernel-* ; do
-           if grub_file_is_not_garbage "$i" ; then list="$list $i" ; fi
-       done ;;
-    *) 
-       list=
-       for i in /boot/vmlinuz-* /boot/vmlinux-* /vmlinuz-* /vmlinux-* /boot/kernel-* ; do
-                  if grub_file_is_not_garbage "$i" ; then list="$list $i" ; fi
-       done ;;
+       globs="/boot/vmlinuz-* /vmlinuz-* /boot/kernel-*"
+       ;;
+    *)
+       globs="/boot/vmlinuz-* /boot/vmlinux-* /vmlinuz-* /vmlinux-* /boot/kernel-*"
+       ;;
 esac
+list=
+for i in ${globs} ; do
+    if grub_file_is_not_garbage "$i" ; then list="$list $i" ; fi
+done
 
 case "$machine" in
     i?86) GENKERNEL_ARCH="x86" ;;
diff --git a/mtab b/mtab
index 0a52f8c307ec502a6ec121c49561b0160d5cce07..ee5f0bdc02efcaf377e29037be513dc07c63b508 100644 (file)
--- a/mtab
+++ b/mtab
@@ -30,3 +30,4 @@ hugetlb /sys/fs/cgroup/hugetlb cgroup rw,nosuid,nodev,noexec,relatime,hugetlb 0
 /dev/mapper/vg0-distfiles /usr/portage/distfiles ext4 rw,noatime 0 0
 /dev/md1 /ubuntu ext3 ro,noatime,acl,user_xattr 0 0
 binfmt_misc /proc/sys/fs/binfmt_misc binfmt_misc rw,nodev,noexec,nosuid 0 0
+/dev/md0 /boot ext3 rw,noatime 0 0