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:
parent
1d5030738c
commit
184ac91ec5
|
@ -391,12 +391,10 @@ def print_firewall_info(args):
|
||||||
apkbuild_has_opt = False
|
apkbuild_has_opt = False
|
||||||
|
|
||||||
arch = args.deviceinfo["arch"]
|
arch = args.deviceinfo["arch"]
|
||||||
suffix = f"rootfs_{args.device}"
|
kernel = get_kernel_package(args, args.device)
|
||||||
kernels = pmb.chroot.other.kernel_flavors_installed(args, suffix,
|
if kernel:
|
||||||
autoinstall=False)
|
kernel_apkbuild = pmb.build._package.get_apkbuild(args, kernel[0],
|
||||||
if kernels:
|
arch)
|
||||||
kernel = f"linux-{kernels[0]}"
|
|
||||||
kernel_apkbuild = pmb.build._package.get_apkbuild(args, kernel, arch)
|
|
||||||
if kernel_apkbuild:
|
if kernel_apkbuild:
|
||||||
opts = kernel_apkbuild["options"]
|
opts = kernel_apkbuild["options"]
|
||||||
apkbuild_has_opt = "pmb:kconfigcheck-nftables" in opts
|
apkbuild_has_opt = "pmb:kconfigcheck-nftables" in opts
|
||||||
|
|
Loading…
Reference in New Issue