From 8f665b61c0115e4cc6ee421c8a4538a333f64e77 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Thu, 1 Dec 2022 13:58:08 +0000 Subject: [PATCH] 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 --- src/python/disk.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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", ) -- 2.47.3