Merge "Tidy up SuSE kernel selection"
This commit is contained in:
commit
f1437fe241
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue