Tidy up SuSE kernel selection

This is just removing a C&P line that only ever returns a single result.

Change-Id: Iad37e982412a9199d86d9b4481cc14a85eef704e
This commit is contained in:
Jan Grant 2014-04-28 15:15:09 +01:00
parent 6df7039ba1
commit b7aa04ed9d

View File

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