Merge "Fix openSUSE kernel/initrd detection"
This commit is contained in:
commit
63826e02fb
@ -164,8 +164,8 @@ function select_boot_kernel_initrd () {
|
|||||||
KERNEL=${KERNEL:-$(basename `ls -1rv $BOOTDIR/vmlinuz* | head -1`)}
|
KERNEL=${KERNEL:-$(basename `ls -1rv $BOOTDIR/vmlinuz* | head -1`)}
|
||||||
RAMDISK=${RAMDISK:-$(basename `ls -1rv $BOOTDIR/initrd* | head -1`)}
|
RAMDISK=${RAMDISK:-$(basename `ls -1rv $BOOTDIR/initrd* | head -1`)}
|
||||||
elif [ -f $TARGET_ROOT/etc/SuSE-release ]; then
|
elif [ -f $TARGET_ROOT/etc/SuSE-release ]; then
|
||||||
KERNEL=vmlinuz
|
KERNEL=$(basename $(readlink -e $BOOTDIR/vmlinuz))
|
||||||
RAMDISK=initrd
|
RAMDISK=$(basename $(readlink -e $BOOTDIR/initrd))
|
||||||
else
|
else
|
||||||
echo "ERROR: Unable to detect operating system"
|
echo "ERROR: Unable to detect operating system"
|
||||||
exit 1
|
exit 1
|
||||||
|
Loading…
Reference in New Issue
Block a user