dracut-017 usrmount module always mounts separete /usr as rw that causes fsck openrc service always fail and make system unbootable $ emerge --info Portage 2.2.0_alpha89 (default/linux/amd64/10.0/desktop/kde, gcc-4.6.2, glibc-2.14.1-r2, 3.3.0-rc4-gentoo x86_64) ================================================================= System uname: Linux-3.3.0-rc4-gentoo-x86_64-Intel-R-_Core-TM-_i5_CPU_M_520_@_2.40GHz-with-gentoo-2.1 Timestamp of tree: Fri, 02 Mar 2012 08:30:01 +0000 ccache version 3.1.7 [enabled] app-shells/bash: 4.2_p20 dev-java/java-config: 2.1.11-r3 dev-lang/python: 2.7.2-r3, 3.2.2 dev-util/ccache: 3.1.7 dev-util/cmake: 2.8.7-r3 dev-util/pkgconfig: 0.26 sys-apps/baselayout: 2.1 sys-apps/openrc: 0.9.9.2 sys-apps/sandbox: 2.5 sys-devel/autoconf: 2.13, 2.68 sys-devel/automake: 1.9.6-r3, 1.10.3, 1.11.3 sys-devel/binutils: 2.22-r1 sys-devel/gcc: 4.6.2 sys-devel/gcc-config: 1.5-r2 sys-devel/libtool: 2.4.2 sys-devel/make: 3.82-r3 sys-kernel/linux-headers: 3.2-r1 (virtual/os-headers) sys-libs/glibc: 2.14.1-r2 Repositories: gentoo kde x11 science sunrise alexxy gamerlay-stable aidecoe betagarden rion Installed sets: ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe -march=native -mtune=native -mfpmath=sse -msse4 -maes -fgraphite-identity -ftree-loop-linear -floop-interchange -floop-strip-mine -floop-block -floop-parallelize-all" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa /usr/share/themes/oxygen-gtk/gtk-2.0" 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/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-O2 -pipe -march=native -mtune=native -mfpmath=sse -msse4 -maes -fgraphite-identity -ftree-loop-linear -floop-interchange -floop-strip-mine -floop-block -floop-parallelize-all" DISTDIR="/usr/portage/distfiles" FEATURES="assume-digests binpkg-logs candy ccache distlocks ebuild-locks fixlafiles metadata-transfer news parallel-fetch preserve-libs protect-owned sandbox sfperms sign strict unknown-features-warn unmerge-logs unmerge-orphans userfetch webrsync-gpg xattr" FFLAGS="-O2 -pipe -march=native -mtune=native -mfpmath=sse -msse4 -maes -fgraphite-identity -ftree-loop-linear -floop-interchange -floop-strip-mine -floop-block -floop-parallelize-all" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="ru_RU.UTF-8" LDFLAGS="-Wl,-O1,--hash-style=gnu,--sort-common,--as-needed" LINGUAS="ru en" MAKEOPTS="-j5" PKGDIR="/usr/portage/packages" PORTAGE_COMPRESS="xz" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/var/lib/layman/kde /var/lib/layman/x11 /var/lib/layman/science /var/lib/layman/sunrise /var/lib/layman/alexxy /var/lib/layman/gamerlay /var/lib/layman/aidecoe /var/lib/layman/betagarden /var/lib/layman/rion" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="64bit X a52 aac acl acpi addressbook alsa amd64 attrib audit bash-completion bazaar berkdb blas bluetooth branding bzip2 cairo caps cdda chm cli clucene connection-sharing consolekit context cracklib crypt cups cvs cxx cyrillic dbus declarative detex device-mapper dhcp dhcpcd dirac disk-partition djvu dri dts dvd dvdr dvi2tty dvipdfm eap-tls ebook emboss enca encode exif expoblending extensions external-ffmpeg extra extras faac faad fam farsight fbcondecor fbsplash ffmpeg fftw firefox flac fontconfig fortran games gdbm gdu gensplash geolocation gif gimp git gles gmp gnutls gphoto2 gpm gps gpu graphics graphite graphviz gs gstreamer gtk hdaps hdf5 health humanities iconsets iconv icu id3 id3tag imagemagick inotify iproute2 ipv6 irc jabber jadetex java jbig jingle jpeg kde kerberos kipi kpathsea lapack laptop lastfm latex latex3 lcms ldap lensfun libnotify libv4l libv4l2 lm_sensors lto luatex lvm lzma mad matroska mercurial mktemp mmx mng modules mp3 mp4 mpeg mplayer msms mudflap multilib multimedia music mysql natspec ncurses netlink networkmanager nls nptl nptlonly nsplugin ntp ogg omega openexr opengl openmp oscar otr packagekit pam pam_ssh pango pcre pdf phonon plasma plotutils plugins pm-utils pnat png policykit povray ppds pppd ps pstricks publishers pulseaudio qemu qt qt3support qt4 rar rdesktop readline realtime redeyes resolvconf romio rtsp samba schroedinger science script sdl semantic-desktop session sip skins skype smp speex spell spice sse sse2 sse3 sse4 ssh ssl ssse3 stars startup-notification stream subversion svg symlink sysfs syslog systemd szip taglib tcpd tex4ht theora threads thumbnail tiff tk tools truetype twolame udev unicode upnp usb utils v4l v4l2 vaapi vde vdpau vhost-net video videos vim vim-syntax vlc vlm vnc vorbis vpx webkit wifi wimax wmf x264 xattr xcb xcomposite xetex xindy xinerama xml xmlpatterns xmp xorg xscreensaver xulrunner xv xvid xvmc zeroconf zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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 authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" DRACUT_MODULES="btrfs crypt crypt-gpg lvm syslog gensplash caps" 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" GRUB_PLATFORMS="pc" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="ru en" PHP_TARGETS="php5-3" QEMU_SOFTMMU_TARGETS="arm i386 mips mips64 mips64el mipsel x86_64" QEMU_USER_TARGETS="arm mips mipsel x86_64" RUBY_TARGETS="ruby19" USERLAND="GNU" VIDEO_CARDS="intel i965" 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, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS Reproducible: Always
Some time ago I made experiences to build my own initramfs that mount /usr. I hit the same problem, the only way I found to workaround this was to set the sixth field of the /usr entry in the fstab to 0, as man fstab says : > If the sixth field is not present or zero, a value of zero is > returned and fsck will assume that the filesystem does not need to be checked. But, the /usr partition was never checked.
From the OpenRC see, I'd close this as NEEDINFO. Please capture the actual openrc log output for the bug, first with a stock conf.d/fsck, and then update conf.d/fsck to contain: fsck_args='-A -p -M' And capture the log again, attach both of the logs here.
Correction for comment #1 : not exactly the same conditions and behavior. I'm on stable x86 with openrc-0.9.8.4, and when the openrc fsck init script is starting with a premounted rw /usr, it ends up with an operationnal error, but other filesystems are anyway checked and the system is booting normally. > * Checking local filesystems ... > [...] > > /dev/sdb3 is mounted. e2fsck: Cannot continue, stopping now. > > [...] > > * Operational error [!!] As I said in comment #1 the sixth field of the /usr entry in the fstab is helping me to correct the issue, so I guess it's the correct behavior.
Also note that dracut actually does an fsck on the /usr partition prior to mounting it (all before going to the real root FS. I too put a zero in the fstab field. I would rather see a fsck of the /usr, but I guess that is the point of early mounting. This whole /usr thing seems like a case of taking something was working great and ...
This is expected behavior for dracut. Init system is expected to handle rw /usr. There's actually no need to /usr be mounted ro, because it's checked at initramfs. Please file a bug for OpenRC.
(In reply to comment #5) > There's actually no need to /usr be mounted ro, because it's checked > at initramfs. Please file a bug for OpenRC. This was already handled and fixed in bug #401573.
*** Bug 415035 has been marked as a duplicate of this bug. ***