]> Frank Brehm's Git Trees - config/bruni/etc.git/commitdiff
saving uncommitted changes in /etc prior to emerge run
authorFrank Brehm <frank@brehm-online.com>
Fri, 11 Mar 2016 12:21:32 +0000 (13:21 +0100)
committerFrank Brehm <frank@brehm-online.com>
Fri, 11 Mar 2016 12:21:32 +0000 (13:21 +0100)
grub.d/10_linux

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" ;;