Summary: | sys-apps/openrc: fsck init script should not check network filesystems | ||
---|---|---|---|
Product: | Gentoo Hosted Projects | Reporter: | Vladimir Berezhnoy <non7top> |
Component: | OpenRC | Assignee: | OpenRC Team <openrc> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 405503 |
Description
Vladimir Berezhnoy
2012-03-15 15:03:24 UTC
Do you have some example output to support that? Not sure what kind of output could be helpful here, but here is some: /etc/fstab: /dev/disk/by-uuid/016dc8ad-5afa-4e47-b49c-54a00473afa4 /mnt/u01 ext4 _netdev,noatime 0 2 Despite the fact that this entry has _netdev option, meaning that this is actually a networked filesystem, the device is still being checked by fsck at "Checking local filesystems" at early boot. For example RHEL does the fsck for such filesystems just before netmount which is expected. In my case the devices are actually local, but my intention for use _netdev is to make those devices be mounted with netmount so in case of error the boot process is not aborted (as it happens with localmount which aborts boot process, leaving headless system without network), and the problems with these filesystems can be looked at later, after system is booted with networking up. (In reply to comment #2) > Not sure what kind of output could be helpful here, but here is some: > > /etc/fstab: > /dev/disk/by-uuid/016dc8ad-5afa-4e47-b49c-54a00473afa4 /mnt/u01 ext4 > _netdev,noatime 0 2 From man fstab, if you change the pass number (the 2 in this example) to 0, fsck will not check the filesystem. Please do this and report back whether or not this fixes your issue. (In reply to comment #3) > From man fstab, if you change the pass number (the 2 in this example) to 0, > fsck will not check the filesystem. I don't need to disable it completely. The bug is that fsck is being run for file systems which are marked as requiring network (_netdev) at the point when networking has not been started yet. These should be checked right before netmount. The fsck script has been modified to only check file systems which are not network file systems. This includes filesystems with _netdev in the options as well as filesystems with a network filesystem type. The commit id is 0571a7e. Thanks for the report. |