sys-kernel/dracut-014 fails to fsck /usr with message: dracut: Checking ext4: /dev/mapper/syssdc3-usr dracut: issuing e2fsck -a noatime,nodiratime,barrier=1,commit=600 /dev/mapper/syssdc3-usr This is followed by e2fsck usage message and: dracut Warning: e2fsck returns with 16 and: sh: can't access tty, ... The relevant line from /etc/fstab is: /dev/mapper/syssdc3-usr /usr ext4 noatime,nodiratime,barrier=1,commit=600 0 2 Reproducible: Always Steps to Reproduce: 1.Update to sys-kernel/dracut-014 on a system with a /usr partition 2.reboot 3. Actual Results: 1.Update to sys-kernel/dracut-014 on a system with a /usr partition 2.reboot 3. boot fails with fsck usage error on /usr partition Expected Results: 1.Update to sys-kernel/dracut-014 on a system with a /usr partition 2.reboot 3. fsck successfully checks /usr partition 4. boot completes successfully
For completeness, Steps to Reproduce should read: 1.Update to sys-kernel/dracut-014 on a system with a /usr partition 2.Use dracut to create a new initramfs 3.Configure grub.conf to use new initramfs 3.reboot
emerge --info Portage 2.2.0_alpha84 (default/linux/x86/10.0/desktop, gcc-4.5.3, glibc-2.13-r4, 3.1.6-gentoo-2 i686) ================================================================= System uname: Linux-3.1.6-gentoo-2-i686-AMD_Phenom-tm-_II_X4_965_Processor-with-gentoo-2.1 Timestamp of tree: Sat, 31 Dec 2011 03: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.6.7-r2, 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.1 sys-apps/openrc: 0.9.7 sys-apps/sandbox: 2.5 sys-devel/autoconf: 2.13, 2.68 sys-devel/automake: 1.9.6-r3, 1.10.3, 1.11.1 sys-devel/binutils: 2.21.1-r1 sys-devel/gcc: 4.3.6-r1, 4.4.6-r1, 4.5.3-r2 sys-devel/gcc-config: 1.5-r2 sys-devel/libtool: 2.4.2 sys-devel/make: 3.82-r1 sys-kernel/linux-headers: 2.6.39 (virtual/os-headers) sys-libs/glibc: 2.13-r4 Repositories: gentoo local kde-sunset ikelos Installed sets: @kde-3.5, @kde-4.7, @system ACCEPT_KEYWORDS="x86" ACCEPT_LICENSE="*" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=k8-sse3 -mtune=amdfam10 -O2 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /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="-march=k8-sse3 -mtune=amdfam10 -O2 -pipe -fomit-frame-pointer" DISTDIR="/mnt/portage.autofs/distfiles" FEATURES="assume-digests binpkg-logs buildpkg distlocks ebuild-locks fixlafiles news parallel-fetch parallel-install preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch" FFLAGS="" GENTOO_MIRRORS="http://mirrors.linuxant.fr/distfiles.gentoo.org/ http://mirror.qubenet.net/mirror/gentoo/ http://mirror.ovh.net/gentoo-distfiles/ http://gentoo.mneisen.org/ http://mirror.bytemark.co.uk/gentoo/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/ http://ftp.heanet.ie/pub/gentoo/ http://mirror.netcologne.de/gentoo/ http://gentoo.tiscali.nl/" LANG="en_GB.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="en en_GB" MAKEOPTS="-j12 --load-average=15.2" PKGDIR="/mnt/portage.autofs/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="/mnt/portage.autofs/tmp-portage" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage /var/lib/layman/kde-sunset /var/lib/layman/ikelos" SYNC="rsync://blue/gentoo-portage" USE="3dnow X a52 aac accessibility acl acpi alsa amarok amr authdaemond bash-completion berkdb bluetooth branding bzip2 cairo caps cdda cdr cli consolekit cracklib crypt cups cxx dbus dri dts dv dvd dvdr dvdread emboss encode exif fam firefox flac fortran gdbm gdu gif gpm gtk iconv ieee1394 ipv6 jpeg kde lcms ldap libnotify lm_sensors lock mad mmx mng modules mp3 mp4 mpeg mudflap mysql ncurses network nls nptl nptlonly ofx ogg opengl openmp oss pam pango pcre pdf png policykit ppds pppd qt3 qt3support qt4 readline samba sasl sdl semantic-desktop session spell sse ssl startup-notification svg sysfs tcpd thunar tiff truetype udev uk_bleb uk_rt unicode usb v4l v4l2 vorbis x264 x86 xcb xine xinerama xml xorg xulrunner xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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 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" 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="lvm syslog" DVB_CARDS="usb-dib0700" 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 evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_GB" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" SANE_BACKENDS="hp5590" USERLAND="GNU" VIDEO_CARDS="nvidia virtualbox" 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, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
I have also the same problem...
Please append -L=6 when calling dracut and attach produced log. Please also attach /etc/dracut.conf.
Created attachment 298011 [details] My /etc/dracut.conf Same problem here. dracut calls "e2fsck -a <mount-opts> <usrfs>" instead of just "e2fsck -a <usrfs>" and exits with RC=16
Created attachment 298013 [details] Command line output
Created attachment 298043 [details] dracut.conf
Created attachment 298045 [details] dracut debug log
Please test fix by adding my overlay (layman -a aidecoe) and installing sys-kernel/dracut-9999.
(In reply to comment #9) > Please test fix by adding my overlay (layman -a aidecoe) and installing > sys-kernel/dracut-9999. Still failing when trying to do: e2fsck -a noatime,nodiratime,barrier=1,commit=600 /dev/mapper/syssdc3-usr rather than: e2fsck -a /dev/mapper/syssdc3-usr However it does now enter a recovery shell after failure.
Are you sure you have used latest dracut-9999 from my overlay? I've got a feedback from another developer that usrmount works now and already sent patch to upstream.
(In reply to comment #11) > Are you sure you have used latest dracut-9999 from my overlay? I've got a > feedback from another developer that usrmount works now and already sent patch > to upstream. Belay that. My test VM just crashed with all partitions corrupted. I rolled it back to the the last snapshot, reinstalled sys-kernel/dracut-9999, built a new initramfs and now dracut tests OK. The boot still fails when /etc/init.d/localmount tries to fsck the /usr partition mounted by dracut. However this is not a dracut issue.
Thank you all! I've committed fix as dracut-014-r1, but will keep bug status until upstream accepts the patch.