Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 408363 - sys-apps/openrc: fsck init script should not check network filesystems
Summary: sys-apps/openrc: fsck init script should not check network filesystems
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: OpenRC (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: OpenRC Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: openrc-0.10
  Show dependency tree
 
Reported: 2012-03-15 15:03 UTC by Vladimir Berezhnoy
Modified: 2013-04-26 05:49 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Berezhnoy 2012-03-15 15:03:24 UTC
At startup fsck checks local filesystems, but it also checks those which have _netdev options and which are supposed to be networking filesystems and may not exist at early boot before netowrking is started. Networking filesystems should be checked before netmount.

Reproducible: Always




Portage 2.1.10.44 (default/linux/x86/10.0/desktop, gcc-4.5.3, glibc-2.13-r4, 2.6.32-openvz-feoktistov.1-srv-v5 i686)
=================================================================
System uname: Linux-2.6.32-openvz-feoktistov.1-srv-v5-i686-Intel-R-_Atom-TM-_CPU_330_@_1.60GHz-with-gentoo-2.0.3
Timestamp of tree: Tue, 13 Mar 2012 23:00:01 +0000
distcc 3.1 i686-pc-linux-gnu [disabled]
ccache version 3.1.6 [disabled]
app-shells/bash:          4.1_p9
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.2-r3, 3.1.4-r3
dev-util/ccache:          3.1.6
dev-util/cmake:           2.8.6-r4
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.9.8.4
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.11.1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.4.5, 4.5.3-r2
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 3.1 (virtual/os-headers)
sys-libs/glibc:           2.13-r4
Repositories: gentoo zfs arcon sunrise x-overlay
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=native -pipe"
DISTDIR="/mnt/storage/sys/distfiles"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://mirror.yandex.ru/gentoo-distfiles/"
LC_ALL=""
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="ru"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/zfs /usr/local/portage/layman/arcon /usr/local/portage/layman/sunrise /usr/local/overlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="a52 aac acpi additions aften apache2 atm avahi avx bash-completion bashlogger branding bzip2 cgi consolekit cracklib crypt curl cxx dhcp djvu dts dvd dvdr enca encode exif expat extensions extras faac fat ffmpeg flac fontconfig fortran ftp gd geoip gif git glib gzip hddtemp httpd iconv id3 imagemagick imlib ipv6 ithreads jabber javascript jfs jpeg json lame lcms libass libextractor libnotify lm_sensors logrotate logwatch lvm lzma mad matroska mixer mktemp mmx mmxext mng modules mozilla mp3 mp4 mpeg mplayer mudflap mysql mysqli ncurses network nls nptl nptlonly ntfs ntlm nvidia obex ogg opengl openmp openntpd openvz pam pango passwordsave pch pcre pdo php plugins png policykit ppds pppd qt3support rdesktop readline rss samba sasl screen sdl semantic-desktop session simplexml slang sndfile spell sqlite sqlite3 srt srv sse sse2 ssl startup-notification statistics subtitles subversion suhosin svg swat sysfs syslog taglib tcpd theora threads threadsafe thumbnail tordns tos translator trayicon truetype udev unicode upnp urandom usb utempter vim-syntax vnc vorbis vpx wavpack web webkit winbind x264 x86 xcb xcomposite xfs xhtml xine xinetd xml xmlreader xmlrpc xmlwriter xorg xosd xpm xsl xulrunner xv xvid zip zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" APACHE2_MPMS="worker" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse ps2mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="ru" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="intel vesa" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2012-03-15 15:30:29 UTC
Do you have some example output to support that?
Comment 2 Vladimir Berezhnoy 2012-03-15 16:06:50 UTC
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.
Comment 3 William Hubbs gentoo-dev 2012-03-26 21:32:45 UTC
(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.
Comment 4 Vladimir Berezhnoy 2012-03-26 21:41:35 UTC
(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.
Comment 5 William Hubbs gentoo-dev 2012-03-29 18:07:16 UTC
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.