mirror of
https://github.com/nix-community/disko.git
synced 2026-11-30 13:03:28 +01:00
disko: fix improper handling of whitespace
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.
This commit is contained in:
1 parent
78d685c123
commit
ca47da60e5
19 files changed
+114
-73
No files matched your search
@@ -17,12 +17,19 @@
|
||||
};
|
||||
};
|
||||
"name with spaces" = {
|
||||
type = "EF00";
|
||||
size = "100M";
|
||||
content = {
|
||||
type = "filesystem";
|
||||
format = "vfat";
|
||||
mountpoint = "/name_with_spaces";
|
||||
mountpoint = "/name with spaces";
|
||||
};
|
||||
};
|
||||
"name^with\\some@special#chars" = {
|
||||
size = "100M";
|
||||
content = {
|
||||
type = "filesystem";
|
||||
format = "vfat";
|
||||
mountpoint = "/name^with\\some@special#chars";
|
||||
};
|
||||
};
|
||||
root = {
|
||||
|
||||
@@ -21,8 +21,8 @@
|
||||
}
|
||||
{
|
||||
name = "name with spaces";
|
||||
start = "1MiB";
|
||||
end = "100MiB";
|
||||
start = "100MiB";
|
||||
end = "200MiB";
|
||||
bootable = true;
|
||||
content = {
|
||||
type = "filesystem";
|
||||
@@ -32,7 +32,7 @@
|
||||
}
|
||||
{
|
||||
name = "root";
|
||||
start = "100MiB";
|
||||
start = "200MiB";
|
||||
end = "100%";
|
||||
part-type = "primary";
|
||||
bootable = true;
|
||||
|
||||
Reference in new issue
Block a user