mirror of
https://github.com/nix-community/disko.git
synced 2026-12-01 13:33:28 +01:00
Fixes #130 This should fix pretty much all cases where spaces or other special characters would break disko due to improper quoting. I searched for all instances of '.label', '.device' and '.name', so I believe I caught whatever I could. In some cases I changed single quotes to double quotes for consistency. I know we don't usually fix bugs in the legacy table type, but it was so easy I couldn't resist.
14 lines
409 B
Nix
14 lines
409 B
Nix
{ pkgs ? import <nixpkgs> { }
|
|
, diskoLib ? pkgs.callPackage ../lib { }
|
|
}:
|
|
diskoLib.testLib.makeDiskoTest {
|
|
inherit pkgs;
|
|
name = "gpt-name-with-whitespace";
|
|
disko-config = ../example/gpt-name-with-whitespace.nix;
|
|
extraTestScript = ''
|
|
machine.succeed("mountpoint /");
|
|
machine.succeed("mountpoint '/name with spaces'");
|
|
machine.succeed("mountpoint '/name^with\\some@special#chars'");
|
|
'';
|
|
}
|