nixpkgs/nixos/maintainers/scripts
Tuomas Tynkkynen 962e79ef32 nixos/make-disk-image.nix: Support EFI images
- Add a new parameter `imageType` that can specify either "efi" or
  "legacy" (the default which should see no change in behaviour by
  this patch).

- EFI images get a GPT partition table (instead of msdos) with a
  mandatory ESP partition (so we add an assert that `partitioned`
  is true).

- Use the partx tool from util-linux to determine exact start + size
  of the root partition. This is required because GPT stores a secondary
  partition table at the end of the disk, so we can't just have
  mkfs.ext4 create the filesystem until the end of the disk.

- (Unrelated to any EFI changes) Since we're depending on the
  `-E offset=X` option to mkfs which is only supported by e2fsprogs,
  disallow any attempts of creating partitioned disk images where
  the root filesystem is not ext4.
2018-01-22 11:18:23 +02:00
..
azure virtualization/azure: update the scripts for image maintenance 2016-03-13 13:57:31 +02:00
ec2 nixos/make-disk-image.nix: Support EFI images 2018-01-22 11:18:23 +02:00
gce gce/create-gce.sh: rewrite using nix-shell shebang and bash (#24869) 2017-04-13 13:42:28 +02:00
openstack nixos/nova-image: cleanup image builders (#29242) 2017-09-11 17:33:33 +01:00