From 3650264e46bdd46d21db196cfce231ca93d0567c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guido=20G=C3=BCnther?= Date: Fri, 27 Sep 2019 15:03:48 +0200 Subject: [PATCH] Don't pass any filesystem flags for f2fs It does not like errors=remount-ro and mounts the rootfs ro in this case. --- vmdebootstrap/filesystem.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vmdebootstrap/filesystem.py b/vmdebootstrap/filesystem.py index b911c05..5ca7e5a 100644 --- a/vmdebootstrap/filesystem.py +++ b/vmdebootstrap/filesystem.py @@ -182,7 +182,7 @@ class Filesystem(Base): def get_mount_flags(fstype): """Return the fstab mount flags for a given file system type.""" flags = ['errors=remount-ro'] - if fstype == 'btrfs': + if fstype in ['btrfs', 'f2fs']: flags = [] return ','.join(flags) or 'defaults' -- GitLab