install: don't try to embed firmware in split images (MR 2033)

Split images have /dev/installp1 and /dev/installp2 but no
/dev/install to place the firmware, so it will actually create that file
in devfs where it might run out of space since it's only 1MB big
This commit is contained in:
Martijn Braam 2021-03-12 16:52:15 +01:00
parent af2b2b5933
commit ed0bbf6069
No known key found for this signature in database
GPG Key ID: 8642571587897EA1
1 changed files with 6 additions and 1 deletions

View File

@ -523,7 +523,12 @@ def install_system_image(args, size_reserve, suffix, step, steps,
create_home_from_skel(args)
configure_apk(args)
copy_ssh_keys(args)
embed_firmware(args, suffix)
# Don't try to embed firmware on split images since there's no
# place to put it and it will end up in /dev of the chroot instead
if not split:
embed_firmware(args, suffix)
if sdcard:
logging.info("Unmounting SD card (this may take a while "
"to sync, please wait)")