From: Michael Tremer Date: Thu, 1 Dec 2022 13:58:08 +0000 (+0000) Subject: disk: Set filesystem to auto X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8f665b61c0115e4cc6ee421c8a4538a333f64e77;p=people%2Fms%2Fbricklayer.git disk: Set filesystem to auto Sometimes, the names that parted uses are different from what mount/the kernel expect. Therefore we let it automatically detect the filesystem unless a partition is a swap space. Signed-off-by: Michael Tremer --- diff --git a/src/python/disk.py b/src/python/disk.py index 99fdf18..2c40593 100644 --- a/src/python/disk.py +++ b/src/python/disk.py @@ -488,7 +488,9 @@ class Partition(object): return "UUID=%s %s %s defaults 0 0\n" % ( self.uuid, self.mountpoint or "none", - self.filesystem, + + # Let the kernel automatically detect the filesystem unless it is swap space + "swap" if self.filesystem == "swap" else "auto", )