Add support for swap
This commit is contained in:
parent
a73b04f56b
commit
fa066d486c
1 changed files with 3 additions and 0 deletions
|
@ -7,6 +7,7 @@
|
||||||
|
|
||||||
fs = {
|
fs = {
|
||||||
ext4 = "ext4";
|
ext4 = "ext4";
|
||||||
|
swap = "swap";
|
||||||
ntfs = "ntfs";
|
ntfs = "ntfs";
|
||||||
fat32 = "fat32";
|
fat32 = "fat32";
|
||||||
};
|
};
|
||||||
|
@ -99,12 +100,14 @@
|
||||||
|
|
||||||
formatScripts = {
|
formatScripts = {
|
||||||
${fs.ext4} = "mkfs.ext4 -F ${diskVar}";
|
${fs.ext4} = "mkfs.ext4 -F ${diskVar}";
|
||||||
|
${fs.swap} = "mkswap ${diskVar}";
|
||||||
${fs.ntfs} = "mkfs.ntfs -F ${diskVar}";
|
${fs.ntfs} = "mkfs.ntfs -F ${diskVar}";
|
||||||
${fs.fat32} = "mkfs.fat -F 32 ${diskVar}";
|
${fs.fat32} = "mkfs.fat -F 32 ${diskVar}";
|
||||||
};
|
};
|
||||||
|
|
||||||
labelScripts = {
|
labelScripts = {
|
||||||
${fs.ext4} = label: "e2label ${diskVar} ${label}";
|
${fs.ext4} = label: "e2label ${diskVar} ${label}";
|
||||||
|
${fs.swap} = label: "swaplabel ${diskVar} ${label}";
|
||||||
${fs.ntfs} = label: "ntfslabel ${diskVar} ${label}";
|
${fs.ntfs} = label: "ntfslabel ${diskVar} ${label}";
|
||||||
${fs.fat32} = label: "fatlabel ${diskVar} ${label}";
|
${fs.fat32} = label: "fatlabel ${diskVar} ${label}";
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue