Bug#803744: f2fs-tools: use of f2fs as rootfs is broken

2015-11-19 Thread Vincent Cheng
Hi Sven,

On Mon, Nov 2, 2015 at 12:38 AM, Sven Geggus
 wrote:
> Source: f2fs-tools
> Severity: normal
>
> Hello,
>
> at least when using System-V Init Debian is currently not able to run from
> a f2fs root. The reason is, that fsck.f2fs is unable to check a ro mounted fs.
>
> As this is also the case with xfs there is an easy solution:
>
> 1. Rename fsck.f2fs to something else like f2fs_repair or f2fs_check.
>
> 2. Copy fsck.xfs script to fsck.f2fs or replace with a slightly modified 
> Version
>   (e.g. printing F2FS instead of xfs).

I have no problems running Debian with a f2fs root (on a Raspberry Pi,
to be precise).

If this is a question of fsck.f2fs not supporting the same options as
other fsck implementations, IMHO that should be fixed upstream instead
of adding a workaround in Debian with a wrapper script.

Regards,
Vincent



Bug#803744: f2fs-tools: use of f2fs as rootfs is broken

2015-11-19 Thread Sven Geggus
Vincent Cheng schrieb am Donnerstag, den 19. November um 12:31 Uhr:

> I have no problems running Debian with a f2fs root (on a Raspberry Pi,
> to be precise).

I already had this problem on raspbian wheezy as well and have it now on an
arm based NAS.  However, this might be a sysv-init only problem.  I did not
try to use systemd.

> If this is a question of fsck.f2fs not supporting the same options as
> other fsck implementations, IMHO that should be fixed upstream instead
> of adding a workaround in Debian with a wrapper script.

Its not! Like in xfs it is not possible to check a ro mounted f2fs filesystem.
fsck.f2fs does have the correct options, but is just telling the caller that
checking a mounted filesystem is unsupported with f2fs.

Touching /fastboot will work BTW because it will skip the failing call to
fsck.f2fs.

Sven

-- 
All bugs added by David S. Miller 
Linux Kernel boot message from /usr/src/linux/net/8021q/vlan.c

/me is giggls@ircnet, http://sven.gegg.us/ on the Web



Bug#803744: f2fs-tools: use of f2fs as rootfs is broken

2015-11-02 Thread Sven Geggus
Source: f2fs-tools
Severity: normal

Hello,

at least when using System-V Init Debian is currently not able to run from
a f2fs root. The reason is, that fsck.f2fs is unable to check a ro mounted fs.

As this is also the case with xfs there is an easy solution:

1. Rename fsck.f2fs to something else like f2fs_repair or f2fs_check.

2. Copy fsck.xfs script to fsck.f2fs or replace with a slightly modified Version
  (e.g. printing F2FS instead of xfs).

Sven

-- System Information:
Debian Release: 8.1
  APT prefers stable
  APT policy: (500, 'stable'), (500, 'oldstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386