more wip (MR 2252)

Signed-off-by: Caleb Connolly <caleb@postmarketos.org>
This commit is contained in:
Caleb Connolly 2024-05-27 00:39:50 +02:00 committed by Oliver Smith
parent 34dd9d42ba
commit 48cd886401
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB
34 changed files with 237 additions and 228 deletions

View file

@ -49,9 +49,9 @@ def _parse_flavor(args: PmbArgs, autoinstall=True):
# identifier that is typically in the form
# "postmarketos-<manufacturer>-<device/chip>", e.g.
# "postmarketos-qcom-sdm845"
chroot = Chroot(ChrootType.ROOTFS, args.device)
chroot = Chroot(ChrootType.ROOTFS, args.devicesdhbfvhubsud)
flavor = pmb.chroot.other.kernel_flavor_installed(
args, chroot, autoinstall)
chroot, autoinstall)
if not flavor:
raise RuntimeError(
@ -78,7 +78,7 @@ def _parse_suffix(args: PmbArgs) -> Chroot:
def _install_ondev_verify_no_rootfs(args: PmbArgs):
chroot_dest = "/var/lib/rootfs.img"
dest = Chroot(ChrootType.INSTALLER, args.device) / chroot_dest
dest = Chroot(ChrootType.INSTALLER, args.devicesdhbfvhubsud) / chroot_dest
if dest.exists():
return