Package: vmdebootstrap Version: 1.11-2 Severity: wishlist Hi, attached patch allows to use f2fs as filesystem which otherwise gets confused by the 'errors=remount-ro' flag. I'm happy to NMU. Cheers, -- Guido
-- System Information: Debian Release: bullseye/sid APT prefers testing APT policy: (990, 'testing'), (500, 'unstable') Architecture: amd64 (x86_64) Foreign Architectures: i386, armhf Kernel: Linux 5.2.0-3-amd64 (SMP w/4 CPU cores) Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE=de_DE.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages vmdebootstrap depends on: ii debootstrap 1.0.115 ii kpartx 0.7.9-3+b2 ii libjs-sphinxdoc 1.8.5-3 ii parted 3.2-25+b1 ii python 2.7.16-1 ii python-cliapp 1.20180812.1-2 ii python-distro-info 0.21 ii python2.7 2.7.16-4 ii qemu-utils 1:3.1+dfsg-8 Versions of packages vmdebootstrap recommends: ii dosfstools 4.1-2 ii extlinux 3:6.04~git20190206.bf6db5b4+dfsg1-1 ii grub2-common 2.04-2 ii python-guestfs 1:1.40.2-2+b1 ii qemu-system 1:3.1+dfsg-8 ii qemu-user-static 1:3.1+dfsg-8 ii squashfs-tools 1:4.3-13 Versions of packages vmdebootstrap suggests: pn cmdtest <none> pn mbr <none> ii pandoc 2.2.1-3+b2 pn u-boot <none> -- no debconf information
From: =?utf-8?q?Guido_G=C3=BCnther?= <a...@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'