Merge "Fix: IPA image buidling with OpenSuse."

This commit is contained in:
Zuul 2021-04-08 07:05:22 +00:00 committed by Gerrit Code Review
commit cb96117146

View File

@ -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