Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: "nixos-rebuild build-vm-with-bootloader"
- Loading branch information
Showing
1 changed file
with
3 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -138,13 +138,13 @@ let | |
'' | ||
# Create a /boot EFI partition with 40M | ||
${pkgs.gptfdisk}/bin/sgdisk -G /dev/vda | ||
This comment has been minimized.
Sorry, something went wrong. |
||
${pkgs.gptfdisk}/bin/sgdisk -a 1 -n 1:34:2047 -c 1:"BIOS Boot Partition" -t 1:ef02 /dev/vda | ||
${pkgs.gptfdisk}/bin/sgdisk -a 512 -N 2 -c 2:"EFI System" -t 2:ef00 /dev/vda | ||
${pkgs.gptfdisk}/bin/sgdisk -a 1 -n 1:34:2047 -c 1:BIOSBootPartition -t 1:ef02 /dev/vda | ||
${pkgs.gptfdisk}/bin/sgdisk -a 512 -N 2 -c 2:EFISystem -t 2:ef00 /dev/vda | ||
${pkgs.gptfdisk}/bin/sgdisk -A 1:set:1 /dev/vda | ||
${pkgs.gptfdisk}/bin/sgdisk -A 2:set:2 /dev/vda | ||
${pkgs.gptfdisk}/bin/sgdisk -h 2 /dev/vda | ||
${pkgs.gptfdisk}/bin/sgdisk -C /dev/vda | ||
${pkgs.utillinux}/bin/sfdisk /dev/vda -A 2 | ||
${pkgs.gptfdisk}/bin/sgdisk -A 2:set:2 /dev/vda | ||
This comment has been minimized.
Sorry, something went wrong.
abbradar
Member
|
||
. /sys/class/block/vda2/uevent | ||
mknod /dev/vda2 b $MAJOR $MINOR | ||
. /sys/class/block/vda/uevent | ||
|
man sgdisk says:
Does that line therefore prevent reproducibility of the output derivation?