Merge "Fix kernel/initrd extraction for SUSE based distros"
This commit is contained in:
commit
1e04079d4f
@ -47,6 +47,9 @@ if [ -f $TARGET_ROOT/etc/redhat-release ]; then
|
|||||||
elif [ -f $TARGET_ROOT/etc/debian_version ]; then
|
elif [ -f $TARGET_ROOT/etc/debian_version ]; then
|
||||||
KERNEL=$(basename `ls -1rv $BOOTDIR/vmlinuz*generic | head -1`)
|
KERNEL=$(basename `ls -1rv $BOOTDIR/vmlinuz*generic | head -1`)
|
||||||
RAMDISK=$(basename `ls -1rv $BOOTDIR/initrd*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`)
|
||||||
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