Skip to content
Snippets Groups Projects
Unverified Commit 6db8f8dd authored by Clayton Craft's avatar Clayton Craft :speech_balloon:
Browse files

pmb/chroot/initfs: change invocation to support the new mkinitfs

The new mkinitfs does not have options for kernel flavor or version
parent 468d3137
No related branches found
No related tags found
No related merge requests found
......@@ -15,13 +15,7 @@ def build(args, flavor, suffix):
# Call mkinitfs
logging.info(f"({suffix}) mkinitfs {flavor}")
release_file = (f"{args.work}/chroot_{suffix}/usr/share/kernel/"
f"{flavor}/kernel.release")
with open(release_file, "r") as handle:
release = handle.read().rstrip()
pmb.chroot.root(args, ["mkinitfs", "-o",
f"/boot/initramfs-{flavor}", release],
suffix)
pmb.chroot.root(args, ["mkinitfs"], suffix)
def extract(args, flavor, suffix, extra=False):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment