Fix kernel extraction on openSUSE

Change-Id: I4ceaff4e6a42fe8dcfe7447f128d7943889ffc3a
This commit is contained in:
Dirk Mueller 2014-02-06 23:46:28 +01:00
parent 5964fec479
commit 7dcbfba5a4

View File

@ -110,6 +110,9 @@ if [ -f $WORK_DIR/etc/redhat-release ]; then
elif [ -f $WORK_DIR/etc/debian_version ]; then
KERNEL=$(basename `ls -1rv $BOOTDIR/vmlinuz*generic | head -1`)
RAMDISK=$(basename `ls -1rv $BOOTDIR/initrd*generic | head -1`)
elif [ -f $WORK_DIR/etc/SuSE-release ]; then
KERNEL=$(basename `ls -1rv $BOOTDIR/vmlinuz`)
RAMDISK=$(basename `ls -1rv $BOOTDIR/initrd`)
else
echo "ERROR: Unable to detect operating system"
exit 1