Skip to content

Kernel updates

Administrator requested to merge kernel-updates into master

Test results with weston:

  • lts: works
  • stable: works
  • mainline (not updated in this PR): "no drm device found" "fatal: failed to create compositor backend"

Additionally for testing I have used the patch

diff --git a/pmb/parse/arguments.py b/pmb/parse/arguments.py
index e5d81b4..1bcdfb2 100644
--- a/pmb/parse/arguments.py
+++ b/pmb/parse/arguments.py
@@ -111,6 +111,7 @@ def arguments_qemu(subparser):
                      help="guest RAM (default: 1024)")
     ret.add_argument("-p", "--port", type=int, default=2222,
                      help="SSH port (default: 2222)")
+    ret.add_argument("--flavor", help="kernel flavor")
 
     display = ret.add_mutually_exclusive_group()
     display.add_argument("--spice", dest="spice_port", const="8077",
diff --git a/pmb/qemu/run.py b/pmb/qemu/run.py
index 4645f0e..75b32c4 100644
--- a/pmb/qemu/run.py
+++ b/pmb/qemu/run.py
@@ -114,7 +114,10 @@ def command_qemu(args, arch, device, img_path, spice_enabled):
 
     suffix = "rootfs_" + device
     rootfs = args.work + "/chroot_" + suffix
-    flavor = pmb.chroot.other.kernel_flavor_autodetect(args, suffix)
+    if args.flavor:
+        flavor = args.flavor
+    else:
+        flavor = pmb.chroot.other.kernel_flavor_autodetect(args, suffix)
     command = [qemu_bin]
     command += ["-kernel", rootfs + "/boot/vmlinuz-" + flavor]
     command += ["-initrd", rootfs + "/boot/initramfs-" + flavor]

to easily switch between the kernels. (ran pmb install --add linux-postmarketos-lts,linux-postmarketos-stable,linux-postmarketos-mainline --no-fde before)

Merge request reports

Loading