main/busybox: busybox mount doesn't use mount.nilfs2
On boot, a nilfs2 filesystem entry in fstab will be mounted successfully using busybox mount but the nilfs_cleanerd
process is not started automatically. From the documentation:
This program can be invoked either automatically by mount.nilfs2(8) or manually by an administrator. However, users are recommended to invoke nilfs_cleanerd through mount.nilfs2(8) or mount(8) and shutdown it through umount.nilfs2(8) or umount(8) in order to avoid state inconsistencies among administration tools.
Installing the mount tool from util-linux, apk add mount
, results in nilfs_cleanerd
being started automatically on filesystem mount. Busybox mount tries a generic mount first and if unsuccessful, tries the mount helper if available. The util-linux mount seems to do the opposite though I'm admittedly a little challenged trying to follow the code.
As the current package maintainer for nilfs-utils, which includes mount.nilfs2
, I wanted to drop this issue here for the one other user that might run into this. I emailed the busybox mailing list and will update this issue with additional info if I get any.