git.iko.soy/typeable/nixpkgs
on master help sign in
nixos/tests/installer: Add a testcase for fat32 /boot
commite861889e9922cdf4601ec316bbbaaad0d7cf3d62 authorWilliam A. Kennington III <william@wkennington.com> dateWed 8 Jul 2015, 12:05 (11 years ago) parentbd82a79
3 files changed+23
nixos/release-combined.nix+1 nixos/release.nix+1 nixos/tests/installer.nix+21
nixos/release-combined.nix+1
@@ -56,6 +56,7 @@ in rec {
5656 (all nixos.tests.installer.lvm)
5757 (all nixos.tests.installer.luksroot)
5858 (all nixos.tests.installer.separateBoot)
59+ (all nixos.tests.installer.separateBootFat)
5960 (all nixos.tests.installer.simple)
6061 (all nixos.tests.installer.simpleLabels)
6162 (all nixos.tests.installer.simpleProvided)
nixos/release.nix+1
@@ -229,6 +229,7 @@ in rec {
229229 tests.installer.lvm = forAllSystems (system: hydraJob (import tests/installer.nix { inherit system; }).lvm.test);
230230 tests.installer.luksroot = forAllSystems (system: hydraJob (import tests/installer.nix { inherit system; }).luksroot.test);
231231 tests.installer.separateBoot = forAllSystems (system: hydraJob (import tests/installer.nix { inherit system; }).separateBoot.test);
232+ tests.installer.separateBootFat = forAllSystems (system: hydraJob (import tests/installer.nix { inherit system; }).separateBootFat.test);
232233 tests.installer.simple = forAllSystems (system: hydraJob (import tests/installer.nix { inherit system; }).simple.test);
233234 tests.installer.simpleLabels = forAllSystems (system: hydraJob (import tests/installer.nix { inherit system; }).simpleLabels.test);
234235 tests.installer.simpleProvided = forAllSystems (system: hydraJob (import tests/installer.nix { inherit system; }).simpleProvided.test);
nixos/tests/installer.nix+21
@@ -254,6 +254,27 @@ in {
254254 '';
255255 };
256256
257+ # Same as the previous, but with fat32 /boot.
258+ separateBootFat = makeInstallerTest "separateBootFat"
259+ { createPartitions =
260+ ''
261+ $machine->succeed(
262+ "parted /dev/vda mklabel msdos",
263+ "parted /dev/vda -- mkpart primary ext2 1M 50MB", # /boot
264+ "parted /dev/vda -- mkpart primary linux-swap 50MB 1024M",
265+ "parted /dev/vda -- mkpart primary ext2 1024M -1s", # /
266+ "udevadm settle",
267+ "mkswap /dev/vda2 -L swap",
268+ "swapon -L swap",
269+ "mkfs.ext3 -L nixos /dev/vda3",
270+ "mount LABEL=nixos /mnt",
271+ "mkfs.vfat -n BOOT /dev/vda1",
272+ "mkdir -p /mnt/boot",
273+ "mount LABEL=BOOT /mnt/boot",
274+ );
275+ '';
276+ };
277+
257278 # Create two physical LVM partitions combined into one volume group
258279 # that contains the logical swap and root partitions.
259280 lvm = makeInstallerTest "lvm"