mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-20 20:39:04 +02:00
Merge pull request #261452 from nikstur/systemd-repart-gpt-header
nixos/systemd-repart: remove superfluous gpt manipulation
This commit is contained in:
commit
dd3deac858
|
@ -29,16 +29,6 @@ let
|
||||||
"+32M",
|
"+32M",
|
||||||
])
|
])
|
||||||
|
|
||||||
# Fix the GPT table by moving the backup table to the end of the enlarged
|
|
||||||
# disk image. This is necessary because we increased the size of the disk
|
|
||||||
# before. The disk needs to be a raw disk because sgdisk can only run on
|
|
||||||
# raw images.
|
|
||||||
subprocess.run([
|
|
||||||
"${pkgs.gptfdisk}/bin/sgdisk",
|
|
||||||
"--move-second-header",
|
|
||||||
tmp_disk_image.name,
|
|
||||||
])
|
|
||||||
|
|
||||||
# Set NIX_DISK_IMAGE so that the qemu script finds the right disk image.
|
# Set NIX_DISK_IMAGE so that the qemu script finds the right disk image.
|
||||||
os.environ['NIX_DISK_IMAGE'] = tmp_disk_image.name
|
os.environ['NIX_DISK_IMAGE'] = tmp_disk_image.name
|
||||||
'';
|
'';
|
||||||
|
|
Loading…
Reference in a new issue