forked from Mirror/pmbootstrap
chroot/other/kernel_flavor_installed: support generic kernel name (MR 2093)
kernel is named /boot/vmlinuz now, looking at the filename will no longer tell us what flavor it is. This now will look at /usr/share/kernel, which has always contained the kernel 'flavor', and since we currently only install 1 kernel these days, guarding this with pmaports.cfg should be unnecessary. In the worst case (if there are multiple kernel 'flavors' installed), it'll just grab the first one and return it.
This commit is contained in:
parent
184ac91ec5
commit
09794ef832
6 changed files with 26 additions and 32 deletions
|
@ -96,7 +96,7 @@ def command_qemu(args, arch, img_path, img_path_2nd=None):
|
|||
|
||||
suffix = "rootfs_" + args.device
|
||||
rootfs = args.work + "/chroot_" + suffix
|
||||
flavor = pmb.chroot.other.kernel_flavors_installed(args, suffix)[0]
|
||||
flavor = pmb.chroot.other.kernel_flavor_installed(args, suffix)
|
||||
ncpus = os.cpu_count()
|
||||
|
||||
# QEMU mach-virt's max CPU count is 8, limit it so it will work correctly
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue