From 9d9018ac1b6d31abb794886bce9f003a4fc3be18 Mon Sep 17 00:00:00 2001 From: Ray Strode Date: Tue, 10 Jun 2008 10:36:53 -0400 Subject: 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. --- scripts/plymouth-update-initrd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts') 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" -- cgit