···2929 "+32M",
3030 ])
31313232- # Fix the GPT table by moving the backup table to the end of the enlarged
3333- # disk image. This is necessary because we increased the size of the disk
3434- # before. The disk needs to be a raw disk because sgdisk can only run on
3535- # raw images.
3636- subprocess.run([
3737- "${pkgs.gptfdisk}/bin/sgdisk",
3838- "--move-second-header",
3939- tmp_disk_image.name,
4040- ])
4141-4232 # Set NIX_DISK_IMAGE so that the qemu script finds the right disk image.
4333 os.environ['NIX_DISK_IMAGE'] = tmp_disk_image.name
4434 '';