Browse Source

Merge "Fix: IPA image buidling with OpenSuse."

changes/03/785503/1 3.9.0
Zuul 2 weeks ago
committed by Gerrit Code Review
parent
commit
cb96117146
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      diskimage_builder/lib/img-functions

+ 3
- 0
diskimage_builder/lib/img-functions 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


Loading…
Cancel
Save