From 0cff07cbe5a92e3d61b57ddb7db3cc504b556006 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 10 Mar 2016 19:33:56 +0100 Subject: [PATCH] saving uncommitted changes in /etc prior to emerge run --- grub.d/10_linux | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/grub.d/10_linux b/grub.d/10_linux index 94fe619..0b2914f 100755 --- a/grub.d/10_linux +++ b/grub.d/10_linux @@ -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" ;; -- 2.39.5