Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 506654 - sys-apps/systemd-212 expects fsck.vfat to be installed in /sbin
Summary: sys-apps/systemd-212 expects fsck.vfat to be installed in /sbin
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo systemd Team
URL: http://thread.gmane.org/gmane.comp.sy...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-03 13:19 UTC by Jack Todaro
Modified: 2014-04-12 22:04 UTC (History)
1 user (show)

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


Attachments
Search PATH for fsck.type (0001-fsck-Search-for-fsck.type-in-PATH.patch,2.17 KB, patch)
2014-04-09 00:40 UTC, Mike Gilbert
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jack Todaro 2014-04-03 13:19:41 UTC
systemd uses the fsck.* tools in /sbin to fsck the partitions at boot, however it cannot fsck the EFI System Partition (ESP) given that the dosfstools ebuild does not install fsck.vfat into /sbin, but rather /usr/sbin. This results in the following two messages being logged during boot up:

systemd-efi-boot-generator[1411]: Checking was requested for /dev/disk/by-partuuid/83d0599c-fa58-4c59-b57b-d32e93c202bf, but /sbin/fsck.vfat cannot be used: No such file or directory

systemd-fstab-generator[1416]: Checking was requested for /dev/sda1, but /sbin/fsck.vfat cannot be used: No such file or directory

Both are referring to the same partition.

Reproducible: Always

Steps to Reproduce:
1. Boot up in UEFI mode, with the ESP set to be fscked according to /etc/fstab.
Actual Results:  
The ESP is not fscked by systemd.

Expected Results:  
The ESP is fscked by systemd.

On line 21 of the sys-fs/dosfstools-3.0.26 ebuild, sed seems to be setting the prefix as /usr.

emerge --info:

Portage 2.2.10 (default/linux/amd64/13.0/desktop/kde/systemd, gcc-4.8.2, glibc-2.19, 3.14.0-gentoo x86_64)
=================================================================
System uname: Linux-3.14.0-gentoo-x86_64-Intel-R-_Core-TM-_i7-3820_CPU_@_3.60GHz-with-gentoo-2.2
KiB Mem:    16382096 total,  13583880 free
KiB Swap:    8388604 total,   8388604 free
Timestamp of tree: Thu, 03 Apr 2014 12:15:01 +0000
ld ld di GNU (GNU Binutils) 2.24
app-shells/bash:          4.2_p46
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.6, 3.3.5, 3.4.0
dev-util/cmake:           2.8.12.2-r1::kde
dev-util/pkgconfig:       0.28-r1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.14.1
sys-devel/binutils:       2.24-r2
sys-devel/gcc:            4.8.2
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           4.0-r1
sys-kernel/linux-headers: 3.14 (virtual/os-headers)
sys-libs/glibc:           2.19
Repositories: gentoo solpeth gentoo-haskell gamerlay hasufell kde
Installed sets: @kdebase, @kdegames, @kdepim
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--keep-going --jobs=4 --with-bdeps=y"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://ftp.swin.edu.au/gentoo"
LANG="it_IT.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j8"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-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="/usr/local/portage /var/lib/layman/haskell /var/lib/layman/gamerlay /var/lib/layman/hasufell /var/lib/layman/kde"
SYNC="rsync://rsync.au.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 berkdb branding bzip2 cairo cdda cdr cli cracklib crypt cups cxx dbus declarative dri dts dvd dvdr emboss encode exif fam ffmpeg firefox flac fortran gdbm gif gpm iconv ipv6 jpeg kde kipi lcms ldap libnotify mad mmx mng modules mp3 mp4 mpeg multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf phonon plasma png policykit ppds pulseaudio qt3support qt4 readline sdl semantic-desktop session spell sse sse2 ssl startup-notification svg systemd tcpd tiff truetype udev udisks unicode upower usb vorbis wxwidgets x264 xcb xcomposite xinerama xml xscreensaver xv xvid zlib" ABI_X86="64" 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" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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 sheets stage tables krita karbon braindump author" 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 ublox ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_GB it" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="nouveau" 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, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Mike Gilbert gentoo-dev 2014-04-03 14:19:38 UTC
I didn't realize util-linux had been changed to search additional directories. From util-linux-2.22.2.ebuild:

--enable-fs-paths-extra=/usr/sbin:/bin:/usr/bin
Comment 2 Samuli Suominen (RETIRED) gentoo-dev 2014-04-03 14:47:57 UTC
See bug 49562
Comment 3 Mike Gilbert gentoo-dev 2014-04-03 16:15:20 UTC
Sent a note to systemd-devel.
Comment 4 Mike Gilbert gentoo-dev 2014-04-09 00:40:09 UTC
Created attachment 374564 [details, diff]
Search PATH for fsck.type

Can you give this patch a try? Just drop it in /etc/portage/patches/sys-apps/systemd/ .
Comment 5 Jack Todaro 2014-04-09 10:07:47 UTC
(In reply to Mike Gilbert from comment #4)
> Created attachment 374564 [details, diff] [details, diff]
> Search PATH for fsck.type
> 
> Can you give this patch a try? Just drop it in
> /etc/portage/patches/sys-apps/systemd/ .

This seemed to work. I found some of the relevant output from journalctl -b (note that 83d0599c-fa58-4c59-b57b-d32e93c202bf is the partuuid of /dev/sda1):

apr 09 19:53:38 gentoo systemd[1]: Starting File System Check on /dev/disk/by-partuuid/83d0599c-fa58-4c59-b57b-d32e93c202bf...
apr 09 19:53:38 gentoo systemd-fsck[331]: fsck.fat 3.0.26 (2014-03-07)
apr 09 19:53:38 gentoo systemd-fsck[331]: /dev/sda1: 19 files, 4269/130812 clusters
apr 09 19:53:38 gentoo systemd[1]: Started File System Check on /dev/disk/by-partuuid/83d0599c-fa58-4c59-b57b-d32e93c202bf.
apr 09 19:53:38 gentoo systemd[1]: Mounting /boot...

I tested this against systemd-212-r1. Do you want me to test it against systemd-212-r0?
Comment 6 Mike Gilbert gentoo-dev 2014-04-09 23:41:23 UTC
(In reply to Jack Todaro from comment #5)
> I tested this against systemd-212-r1. Do you want me to test it against
> systemd-212-r0?

Nope, 212 is fine.
Comment 7 Mike Gilbert gentoo-dev 2014-04-12 22:04:40 UTC
+*systemd-212-r2 (12 Apr 2014)
+
+  12 Apr 2014; Mike Gilbert <floppym@gentoo.org>
+  +files/212-0002-fsck-Search-for-fsck.type-in-PATH.patch,
+  +systemd-212-r2.ebuild:
+  Search for fsck.type in PATH, bug 506654 by Jack Todaro.