forked from Mirror/pmbootstrap
pmb.install.recovery: Assert that partitions are not None (MR 2464)
They should definitely not be None here, thus assert it so we don't need to keep checking for None later.
This commit is contained in:
parent
b49da9ad82
commit
d05d57b37e
1 changed files with 7 additions and 0 deletions
|
@ -43,6 +43,13 @@ def create_zip(args: PmbArgs, chroot: Chroot, device: str):
|
|||
|
||||
pmb.flasher.check_partition_blacklist(deviceinfo, key, fvalue)
|
||||
|
||||
if (
|
||||
fvars["$PARTITION_KERNEL"] is None
|
||||
or fvars["$PARTITION_INITFS"] is None
|
||||
or fvars["$PARTITION_ROOTFS"] is None
|
||||
):
|
||||
raise AssertionError("Partitions should not be None at this point")
|
||||
|
||||
# Create config file for the recovery installer
|
||||
options = {
|
||||
"DEVICE": device,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue