Merge "Fix: IPA image buidling with OpenSuse."
This commit is contained in:
commit
cb96117146
@ -216,6 +216,9 @@ function select_boot_kernel_initrd () {
|
|||||||
elif [[ -f "${TARGET_ROOT}"/etc/gentoo-release ]]; then
|
elif [[ -f "${TARGET_ROOT}"/etc/gentoo-release ]]; then
|
||||||
KERNEL="$(basename $(ls -1rv $BOOTDIR/vmlinuz-* | head -n 1))"
|
KERNEL="$(basename $(ls -1rv $BOOTDIR/vmlinuz-* | head -n 1))"
|
||||||
RAMDISK="$(basename $(ls -1rv $BOOTDIR/initramfs-* | head -n 1))"
|
RAMDISK="$(basename $(ls -1rv $BOOTDIR/initramfs-* | head -n 1))"
|
||||||
|
elif [[ $DISTRO_NAME = opensuse ]]; then
|
||||||
|
KERNEL=$(basename $(readlink -e $BOOTDIR/vmlinuz))
|
||||||
|
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