Commit 3f06672b authored by Guido Gunther's avatar Guido Gunther
Browse files

Don't pass any filesystem flags for f2fs

parent b1bfa268
From: =?utf-8?q?Guido_G=C3=BCnther?= <agx@sigxcpu.org>
Date: Fri, 27 Sep 2019 15:03:48 +0200
Subject: 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'
Don-t-enforce-U-EFI-on-arm64.patch
Don-t-pass-any-filesystem-flags-for-f2fs.patch
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment