pmb/install: use kernel pkg for device when printing firewall info (MR 2093)

multiple 'flavor' support will be going away
This commit is contained in:
Clayton Craft 2021-08-24 13:40:06 -07:00
parent 1d5030738c
commit 184ac91ec5
No known key found for this signature in database
GPG Key ID: 5AE7F5513E0885CB
1 changed files with 4 additions and 6 deletions

View File

@ -391,12 +391,10 @@ def print_firewall_info(args):
apkbuild_has_opt = False
arch = args.deviceinfo["arch"]
suffix = f"rootfs_{args.device}"
kernels = pmb.chroot.other.kernel_flavors_installed(args, suffix,
autoinstall=False)
if kernels:
kernel = f"linux-{kernels[0]}"
kernel_apkbuild = pmb.build._package.get_apkbuild(args, kernel, arch)
kernel = get_kernel_package(args, args.device)
if kernel:
kernel_apkbuild = pmb.build._package.get_apkbuild(args, kernel[0],
arch)
if kernel_apkbuild:
opts = kernel_apkbuild["options"]
apkbuild_has_opt = "pmb:kconfigcheck-nftables" in opts