summary refs log tree commit diff
path: root/nixos/tests/installer.nix
diff options
context:
space:
mode:
authorWilliam A. Kennington III <william@wkennington.com>2015-07-08 12:05:31 -0700
committerWilliam A. Kennington III <william@wkennington.com>2015-07-08 12:05:31 -0700
commite861889e9922cdf4601ec316bbbaaad0d7cf3d62 (patch)
tree3145ce9d5f359474abfcc2fe5765b2c3071b9850 /nixos/tests/installer.nix
parentbd82a79fc1c5bee7ec1378a68afbeb6cc5721b40 (diff)
downloadnixpkgs-e861889e9922cdf4601ec316bbbaaad0d7cf3d62.tar
nixpkgs-e861889e9922cdf4601ec316bbbaaad0d7cf3d62.tar.gz
nixpkgs-e861889e9922cdf4601ec316bbbaaad0d7cf3d62.tar.bz2
nixpkgs-e861889e9922cdf4601ec316bbbaaad0d7cf3d62.tar.lz
nixpkgs-e861889e9922cdf4601ec316bbbaaad0d7cf3d62.tar.xz
nixpkgs-e861889e9922cdf4601ec316bbbaaad0d7cf3d62.tar.zst
nixpkgs-e861889e9922cdf4601ec316bbbaaad0d7cf3d62.zip
nixos/tests/installer: Add a testcase for fat32 /boot
Diffstat (limited to 'nixos/tests/installer.nix')
-rw-r--r--nixos/tests/installer.nix21
1 files changed, 21 insertions, 0 deletions
diff --git a/nixos/tests/installer.nix b/nixos/tests/installer.nix
index 32be1ea23b9..4da5c29ca0d 100644
--- a/nixos/tests/installer.nix
+++ b/nixos/tests/installer.nix
@@ -254,6 +254,27 @@ in {
         '';
     };
 
+  # Same as the previous, but with fat32 /boot.
+  separateBootFat = makeInstallerTest "separateBootFat"
+    { createPartitions =
+        ''
+          $machine->succeed(
+              "parted /dev/vda mklabel msdos",
+              "parted /dev/vda -- mkpart primary ext2 1M 50MB", # /boot
+              "parted /dev/vda -- mkpart primary linux-swap 50MB 1024M",
+              "parted /dev/vda -- mkpart primary ext2 1024M -1s", # /
+              "udevadm settle",
+              "mkswap /dev/vda2 -L swap",
+              "swapon -L swap",
+              "mkfs.ext3 -L nixos /dev/vda3",
+              "mount LABEL=nixos /mnt",
+              "mkfs.vfat -n BOOT /dev/vda1",
+              "mkdir -p /mnt/boot",
+              "mount LABEL=BOOT /mnt/boot",
+          );
+        '';
+    };
+
   # Create two physical LVM partitions combined into one volume group
   # that contains the logical swap and root partitions.
   lvm = makeInstallerTest "lvm"