On Sat, 13 Jan 2018 11:58:43 +0100
Andrew Barchuk <[email protected]> wrote:
Hi folks,

[…]

Any ideas what is going on and how do I make the fsck check succeed?

It seems the init script(s) within your initramfs implements no logic/hooks for fsck but just mount your /usr partition. After switching to real root your OpenRC fsck init script try to check /usr partition due to the specified 2 for passno (sixth field in /usr fstab entry) and fails because it is already mounted.

You have to implement your own logic in initramfs init script(s) and set passno to 0 for /usr partition to prevent the OpenRC fsck. Have a look at [1] as a starting point. Also check if /etc/initramfs.mounts exists (comes with genkernel-next and probably with other packages, I am not sure at this) and what is defined in there.

The steps to realise a fsck check hook within an initramfs init script may not be trivial and time consuming on building/testing, so, as Alan suggested earlier, checking your partition with a booted rescue live CD or similar, may prevent some headaches.


References:
 - [1] <https://wiki.gentoo.org/wiki/Early_Userspace_Mounting>



--
Regards,
floyd


Reply via email to