nixpkgs-suyu/nixos
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
..
doc/manual nixos manual: fix typo 2018-01-22 09:39:24 +02:00
lib nixos/make-disk-image.nix: Support EFI images 2018-01-22 11:18:23 +02:00
maintainers nixos/make-disk-image.nix: Support EFI images 2018-01-22 11:18:23 +02:00
modules nixos/make-disk-image.nix: Support EFI images 2018-01-22 11:18:23 +02:00
tests Merge pull request #33331 from cransom/netdata-module 2018-01-19 23:19:29 +00:00
COPYING
default.nix
README
release-combined.nix nixos/release.nix: More refactoring for multi-arch 2018-01-19 10:35:49 +02:00
release-small.nix php: pcre test blocks -small channels as well 2017-11-12 11:03:54 +01:00
release.nix Merge pull request #33331 from cransom/netdata-module 2018-01-19 23:19:29 +00:00

*** NixOS ***

NixOS is a Linux distribution based on the purely functional package
management system Nix.  More information can be found at
http://nixos.org/nixos and in the manual in doc/manual.