diff options
author | Ray Strode <rstrode@redhat.com> | 2008-06-10 10:36:53 -0400 |
---|---|---|
committer | Ray Strode <rstrode@redhat.com> | 2008-06-10 10:36:53 -0400 |
commit | 9d9018ac1b6d31abb794886bce9f003a4fc3be18 (patch) | |
tree | 07549669aea8c4b6a45ac022f420874433ea837a /scripts | |
parent | 9116a69e37f15d7e6a0899e0f89089ef00430502 (diff) | |
download | plymouth-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-x | scripts/plymouth-update-initrd | 2 |
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" |