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
1 changed files with 3 additions and 0 deletions

View File

@ -216,6 +216,9 @@ function select_boot_kernel_initrd () {
elif [[ -f "${TARGET_ROOT}"/etc/gentoo-release ]]; then
KERNEL="$(basename $(ls -1rv $BOOTDIR/vmlinuz-* | 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
echo "ERROR: Unable to detect operating system"
exit 1