···29 "+32M",
30 ])
3132- # Fix the GPT table by moving the backup table to the end of the enlarged
33- # disk image. This is necessary because we increased the size of the disk
34- # before. The disk needs to be a raw disk because sgdisk can only run on
35- # raw images.
36- subprocess.run([
37- "${pkgs.gptfdisk}/bin/sgdisk",
38- "--move-second-header",
39- tmp_disk_image.name,
40- ])
41-42 # Set NIX_DISK_IMAGE so that the qemu script finds the right disk image.
43 os.environ['NIX_DISK_IMAGE'] = tmp_disk_image.name
44 '';
···29 "+32M",
30 ])
31000000000032 # Set NIX_DISK_IMAGE so that the qemu script finds the right disk image.
33 os.environ['NIX_DISK_IMAGE'] = tmp_disk_image.name
34 '';