summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorRay Strode <rstrode@redhat.com>2008-06-10 10:36:53 -0400
committerRay Strode <rstrode@redhat.com>2008-06-10 10:36:53 -0400
commit9d9018ac1b6d31abb794886bce9f003a4fc3be18 (patch)
tree07549669aea8c4b6a45ac022f420874433ea837a /scripts
parent9116a69e37f15d7e6a0899e0f89089ef00430502 (diff)
downloadplymouth-9d9018ac1b6d31abb794886bce9f003a4fc3be18.tar.gz
plymouth-9d9018ac1b6d31abb794886bce9f003a4fc3be18.tar.xz
plymouth-9d9018ac1b6d31abb794886bce9f003a4fc3be18.zip
Change heuristics in update script for finding which initrd to repack
Before we were using the current initrd, now we use the default initrd This will hopefully prevent the mismatched kernel/initrd problem.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/plymouth-update-initrd2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/plymouth-update-initrd b/scripts/plymouth-update-initrd
index 363c44c..6bf8ba9 100755
--- a/scripts/plymouth-update-initrd
+++ b/scripts/plymouth-update-initrd
@@ -6,7 +6,7 @@ set -e
[ -z "$LIBEXECDIR" ] && LIBEXECDIR="/usr/libexec"
[ -z "$DATADIR" ] && DATADIR="/usr/share"
-[ -z "$INITRD" ] && INITRD="/boot/initrd-$(/bin/uname -r).img"
+[ -z "$INITRD" ] && INITRD="/boot/initrd-$(/sbin/grubby --default-kernel | sed 's/.*vmlinuz-//g').img"
[ -z "$SYSTEMMAP" ] && SYSTEM_MAP="/boot/System.map-$(/bin/uname -r)"
[ -z "$LIB" ] && [ $(head -n1 $SYSTEM_MAP | awk '{print $1}' | wc -c) -lt 16 ] && LIB="lib" || LIB="lib64"
[ -z "$LIBDIR" ] && LIBDIR="/usr/$LIB"