Add support for swap

This commit is contained in:
Manuel Thalmann 2024-06-22 20:01:17 +02:00
parent a73b04f56b
commit fa066d486c

View file

@ -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}";
}; };