mirror of
https://github.com/nix-community/disko.git
synced 2026-12-01 13:33:28 +01:00
Reproduces #130. For new style table the generated script has a few problems for example; ```sh sgdisk \ --new=2:0:+100M \ --change-name=2:disk-vdb-name with spaces \ --typecode=2:EF00 \ /dev/vdb ``` and ```sh mkfs.vfat \ \ /dev/disk/by-partlabel/disk-vdb-name with spaces ``` Legacy table style generates slightly different problems e.g.; ```sh parted -s /dev/vdb -- mkpart name with spaces 1MiB 100MiB ```
13 lines
347 B
Nix
13 lines
347 B
Nix
{ pkgs ? import <nixpkgs> { }
|
|
, diskoLib ? pkgs.callPackage ../lib { }
|
|
}:
|
|
diskoLib.testLib.makeDiskoTest {
|
|
inherit pkgs;
|
|
name = "legacy-table-with-whitespace";
|
|
disko-config = ../example/legacy-table-with-whitespace.nix;
|
|
extraTestScript = ''
|
|
machine.succeed("mountpoint /");
|
|
machine.succeed("mountpoint /name_with_spaces");
|
|
'';
|
|
}
|