sys-kernel/gentoo-sources-11.* works fine and produces not problem at boot. since sys-kernel/gentoo-sources-3.12.* i got the error on boot: "Failed mount /dev/shm" Reproducible: Always Actual Results: # journalctl -b | grep 'tmpfs' Jan 14 08:13:02 TuX kernel: tmpfs: No value for mount option 'strictatime' Portage 2.2.8 (default/linux/amd64/13.0/desktop, gcc-4.8.2, glibc-2.17, 3.12.7-gentoo x86_64) ================================================================= System uname: Linux-3.12.7-gentoo-x86_64-Intel-R-_Core-TM-_i7-3740QM_CPU_@_2.70GHz-with-gentoo-2.2 KiB Mem: 24695840 total, 23654212 free KiB Swap: 25598972 total, 25598972 free Timestamp of tree: Tue, 14 Jan 2014 05:00:01 +0000 ld GNU ld (GNU Binutils) 2.24 app-shells/bash: 4.2_p45-r1 dev-java/java-config: 2.2.0 dev-lang/python: 2.7.6, 3.2.5-r3, 3.3.3 dev-util/cmake: 2.8.12.1-r3 dev-util/pkgconfig: 0.28 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.11.6, 1.12.6, 1.14.1 sys-devel/binutils: 2.24-r1 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.12 (virtual/os-headers) sys-libs/glibc: 2.17 Repositories: gentoo bitcoin lokal ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=corei7 -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/lib/hsqldb" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.5/ext-active/ /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=corei7 -O2 -pipe" DISTDIR="/mnt/portage/distfiles" 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://distfiles.gentoo.org" LANG="de_DE.UTF-8" LC_ALL="" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j9" PKGDIR="/mnt/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"
Added in 2009: http://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git/commit/?id=d0adde574b8487ef30f69e2d08bba769e4be513f Removed in 2010: http://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git/commit/?id=532490f0a5350fd92d838b7430a4c846bc8eac3f "MS_STRICTATIME clears MNT_RELATIME and MNT_NOATIME rather than setting any mount flag" would mean that you just will want to not pass any flag at all. Can you inspect /etc/fstab, /etc/mtab and /proc/mounts?
(In reply to Tom Wijsman (TomWij) from comment #1) > Added in 2009: > http://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git/commit/ > ?id=d0adde574b8487ef30f69e2d08bba769e4be513f > > Removed in 2010: > http://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git/commit/ > ?id=532490f0a5350fd92d838b7430a4c846bc8eac3f > > "MS_STRICTATIME clears MNT_RELATIME and MNT_NOATIME rather than setting any > mount flag" would mean that you just will want to not pass any flag at all. > > Can you inspect /etc/fstab, /etc/mtab and /proc/mounts? i have inspeckt fstab and /proc/mounts. there is nothing special. so what the problem? # ls -la /proc/mounts lrwxrwxrwx 1 root root 11 15. Jan 07:44 /proc/mounts -> self/mounts # cat /etc/fstab # <fs> <mountpoint> <type> <opts> <dump/pass> /dev/sda2 / ext4 discard,noatime,nodiratime 0 1 /dev/sda3 /boot ext2 discard,noatime,nodiratime 0 1 /dev/sdb5 /home ext4 noatime,nodiratime 0 1 /dev/sdb6 /mnt ext4 noatime,nodiratime 0 0 /dev/sdb7 none swap sw 0 0 /dev/sda1 /mnt/win ntfs-3g users,utf8=true 0 0 /dev/sdb1 /mnt/share ntfs-3g users,utf8=true 0 0 /dev/cdrom /mnt/cdrom udf,iso9660 ro,user,noauto 0 0
What about /etc/mtab? Make sure /etc/mtab is set up as a symlink according to https://wiki.gentoo.org/wiki/Systemd#.2Fetc.2Fmtab as to avoid problems with mounting and mount options. ( On an irrelevant side note, noatime implies nodiratime according to http://lwn.net/Articles/245002/ so you might want to remove nodiratime from /etc/fstab. That code is still present today in http://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git/tree/fs/inode.c )
(In reply to Tom Wijsman (TomWij) from comment #3) > What about /etc/mtab? lrwxrwxrwx 1 root root 17 2. Nov 00:17 /etc/mtab -> /proc/self/mounts /etc/mtab is already a symblink > ( On an irrelevant side note, noatime implies nodiratime according to > http://lwn.net/Articles/245002/ > so you might want to remove nodiratime from /etc/fstab. That code is still > present today in > http://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git/tree/fs/ > inode.c ) does this means i have to romove all entries with noatime implies nodiratime in my /etc/fstab ? # cat /etc/fstab # <fs> <mountpoint> <type> <opts> <dump/pass> /dev/sda2 / ext4 discard 0 1 /dev/sda3 /boot ext2 discard 0 1 /dev/sdb5 /home ext4 0 1 /dev/sdb6 /mntext4 0 0 /dev/sdb7 none swap sw 0 0 /dev/sda1 /mnt/win ntfs-3g users,utf8=true 0 0 /dev/sdb1 /mnt/share ntfs-3g users,utf8=true 0 0 /dev/cdrom /mnt/cdrom udf,iso9660 ro,user,noauto 0 0
(In reply to tman from comment #4) > (In reply to Tom Wijsman (TomWij) from comment #3) > > What about /etc/mtab? > > lrwxrwxrwx 1 root root 17 2. Nov 00:17 /etc/mtab -> /proc/self/mounts > > /etc/mtab is already a symblink Hmm, this makes this an odd bug; that looks good. > does this means i have to romove all entries with noatime implies nodiratime > in my /etc/fstab ? No, as that enables access times; which is not what you want. Keep the lines and keep the word "noatime"; remove the word "nodiratime" only.
i removed all the word "nodiratime". but i still get following errors: Jan 15 21:52:40 TuX kernel: tmpfs: No value for mount option 'strictatime' in addition to this also the error: "Failed mount /dev/shm" but strange that: # df -h Filesystem Size Used Avail Use% Mounted on /dev/sda2 124G 11G 107G 9% / none 12G 1012K 12G 1% /run udev 10M 0 10M 0% /dev tmpfs 12G 72K 12G 1% /dev/shm tmpfs 12G 0 12G 0% /sys/fs/cgroup tmpfs 12G 4,0K 12G 1% /tmp could it cant be a bug of systemd, because with kernel gentoo-sources-3.11. it boot without errors with /dev/shm.
systemd is hard-coded to mount /dev/shm with strictatime: http://cgit.freedesktop.org/systemd/systemd/tree/src/core/mount-setup.c#n87 Also, recent versions of genkernel-next do it: https://github.com/Sabayon/genkernel-next/blob/master/defaults/initrd.d/00-devmgr.sh#L69 As described in bug 493346 comment 6 and bug 493346 comment 10, you may need to force genkernel-next to rebuild busybox or it will not recognize the strictatime mount option.
its really the solution and duplicate bug report. thanks u very much for the patient support. solution: 1) emerge -1av genkernel-next busybox 2) set in /etc/genkernel.conf CLEAR_CACHE_DIR="yes" 3) regenerate with genkernel initramfs 4) reboot *** This bug has been marked as a duplicate of bug 493346 ***
I believe genkernel should clear the cache automatically on install. Otherwise old, unpatched versions of busybox lay around in the cache that do not work correctly with the new init script.