results in non-bootable system
I was told that the kernel now will automatically load filesystem modules when you attempt to mount the filesystems, so I need to find out why that apparently isn't the case for you.
Looking at this a bit further, I need more information. The /etc/init.d/sysfs script always succeeds, so I need to know more about why your system did not boot. What other messages do you see? What else fails in the boot process? If you can get a copy of /var/log/rc.log that will help a lot. Also, please attach your "emerge --info" output.
(In reply to Perfect Gentleman from comment #0) > results in non-bootable system Please also show us your /etc/fstab (I assume it contains an entry to mount efivars) or how you use OpenRC to mount efivars.
i don't rc.log containing that information as filesystem was not writeable. --------------------------------------------------------------------------- ~ $ cat /etc/fstab # /etc/fstab: static file system information. # # noatime turns off atimes for increased performance (atimes normally aren't # needed); notail increases performance of ReiserFS (at the expense of storage # efficiency). It's safe to drop the noatime options if you want and to # switch between notail / tail freely. # # The root filesystem should have a pass number of either 0 or 1. # All other filesystems should have a pass number of 0 or greater than 1. # # See the manpage fstab(5) for more information. # # <fs> <mountpoint> <type> <opts> <dump/pass> # NOTE: If your BOOT partition is ReiserFS, add the notail option to opts. # # NOTE: Even though we list ext4 as the type here, it will work with ext2/ext3 # filesystems. This just tells the kernel to use the ext4 driver. # # NOTE: You can use full paths to devices like /dev/sda3, but it is often # more reliable to use filesystem labels or UUIDs. See your filesystem # documentation for details on setting a label. To obtain the UUID, use # the blkid(8) command. # PARTUUID=7134e9de-c3e5-4785-b7b5-5fffda5b8449 / xfs rw,noatime,attr2,inode64,allocsize=1048576k,logbsize=262144,noquota 0 0 # PARTUUID=bc469416-7139-4027-a2d3-18e012888206 /home/MZ7WD240HAFV xfs rw,noatime,attr2,inode64,allocsize=1048576k,logbsize=262144,noquota 0 0 # PARTUUID=faebb004-24d9-4477-90de-c781d83a7d85 /home/HUS724040ALE640 xfs rw,noatime,attr2,inode64,allocsize=1048576k,logbsize=262144,noquota 0 0 # PARTUUID=f72a0190-8b5a-4d5d-9f77-11e3e9f5b9a0 /home/HTS541010A9E680 xfs rw,noatime,attr2,inode64,allocsize=1048576k,logbsize=262144,noquota 0 0 # tmpfs /tmp tmpfs rw,noatime,nosuid,nodev,size=13579M 0 0 # PARTUUID=bf04d132-aae5-4281-b28b-66b040969dd0 /boot vfat rw,noatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro,nofail 0 0 ----------------------------------------------------
also not efivars but efivarfs
~ $ emerge --info Portage 2.3.4 (python 3.5.3-final-0, default/linux/amd64/13.0/desktop/plasma, gcc-6.3.0, glibc-2.24-r1, 4.10.1-gentoo x86_64) ================================================================= System uname: Linux-4.10.1-gentoo-x86_64-Intel-R-_Core-TM-_i7-4770K_CPU_@_3.50GHz-with-gentoo-2.3 KiB Mem: 16089308 total, 10259508 free KiB Swap: 13904892 total, 13904892 free Timestamp of repository gentoo: Sun, 12 Mar 2017 06:23:35 +0000 sh bash 4.4_p12 ld GNU ld (Gentoo 2.27 p1.0) 2.27 app-shells/bash: 4.4_p12::gentoo dev-lang/perl: 5.24.1-r1::gentoo dev-lang/python: 2.7.13::gentoo, 3.5.3::gentoo dev-util/cmake: 3.7.2::gentoo dev-util/pkgconfig: 0.29.1::gentoo sys-apps/baselayout: 2.3::gentoo sys-apps/openrc: 0.23.2::gentoo sys-apps/sandbox: 2.10-r4::gentoo sys-devel/autoconf: 2.13::gentoo, 2.69-r2::gentoo sys-devel/automake: 1.13.4-r1::gentoo, 1.15-r2::gentoo sys-devel/binutils: 2.27::gentoo sys-devel/gcc: 6.3.0::gentoo sys-devel/gcc-config: 1.8-r1::gentoo sys-devel/libtool: 2.4.6-r3::gentoo sys-devel/make: 4.2.1::gentoo sys-kernel/linux-headers: 4.10::gentoo (virtual/os-headers) sys-libs/glibc: 2.24-r1::gentoo Repositories: gentoo location: /usr/portage sync-type: git sync-uri: git://github.com/gentoo-mirror/gentoo.git priority: 1 sync-git-clone-extra-opts: --branch master kde location: /usr/portage/proj/kde sync-type: git sync-uri: git://anongit.gentoo.org/proj/kde.git masters: gentoo priority: 3 pg_overlay location: /usr/local/overlay sync-type: git sync-uri: git://github.com/perfect7gentleman/pg_overlay.git masters: gentoo priority: 7 ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -mtune=native -O2 -pipe -fomit-frame-pointer -fno-stack-protector" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-march=native -mtune=native -O2 -pipe -fomit-frame-pointer -fno-stack-protector" DISTDIR="/usr/portage/distfiles" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch parallel-install preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="en_US.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j9" 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 --exclude=/.git" PORTAGE_TMPDIR="/tmp" USE="X acl acpi adns amd64 bash-completion branding bzip2 cairo cli consolekit cracklib cups custom-cflags cxx dbus declarative dri dts exif fam ffmpeg flac fontconfig gif glamor gmp iconv icu introspection jabber jit jpeg kipi kwallet lcms libass libnotify lm_sensors lua lzma lzo matroska mmap mng modules multilib ncurses nls nptl nsplugin ntpl opengl openmp orc pam pango pch pcre pdf phonon png policykit ppds pulseaudio qml qt3support readline seccomp session smp sox spell ssl svg symlink szip tcmalloc threads tiff truetype udev udisks unicode usb v4l vaapi wavpack webp widgets wxwidgets x264 xattr xcb xcomposite xml xmpp 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" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput roccat_kovaplus roccat_ryosmk" KERNEL="linux" L10N="en en-US ru" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_US ru ru_RU" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python3_5" PYTHON_TARGETS="python3_5" QEMU_SOFTMMU_TARGETS="x86_64 i386" QEMU_USER_TARGETS="x86_64 i386" RUBY_TARGETS="ruby24" 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" USE_PYTHON="3.5" Unset: CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Your fstab looks good. efivarfs is mounted by /etc/init.d/sysfs, which starts successfully even if efivarfs is not mounted successfully. Also, there are no dependencies on the sysfs script within OpenRC itself. Because of this, the failure you mention should not make your system unbootable, so I need to know the messages you see when you try to boot with 0.24.
(In reply to William Hubbs from comment #7) > Your fstab looks good. > efivarfs is mounted by /etc/init.d/sysfs, which starts successfully even if > efivarfs is not mounted successfully. Also, there are no dependencies on the > sysfs script within OpenRC itself. > > Because of this, the failure you mention should not make your system > unbootable, so I need to know the messages you see when you try to boot with > 0.24. i didn't have CONFIG_EFIVAR_FS=y, which now became obligatory. but there was no any warning.
This shouldn't be fatal to boot though. Maybe the mount failure should be silenced, so that users who choose not to enable EFIVAR_FS don't see an ugly mount error, but this shouldn't be stopping your boot. Can you provide more information as to when/how your boot stops?
i'd updated openrc to 0.24, reboot and that's it
(In reply to Perfect Gentleman from comment #8) > i didn't have CONFIG_EFIVAR_FS=y, which now became obligatory. but there was > no any warning. Actually, this setting did not become obligatory; I'm talking to someone right now who has it set to m. What was it on your system before?
(In reply to William Hubbs from comment #11) > (In reply to Perfect Gentleman from comment #8) > > i didn't have CONFIG_EFIVAR_FS=y, which now became obligatory. but there was > > no any warning. > > Actually, this setting did not become obligatory; I'm talking to someone > right now who has it set to m. What was it on your system before? it wasn't set
Please attach a screenshot or netconsole log of the boot failure so we can see what's going on. I am booting just fine with CONFIG_EFIVAR_FS=n and openrc-0.24 so this isn't as straightforward a problem as you're implying. There must be more to the story. # zgrep EFIVAR /proc/config.gz # CONFIG_EFIVAR_FS is not set # rc --version rc (OpenRC) 0.24 (Gentoo Linux) # uptime 11:49:11 up 1 min, 1 user, load average: 0.34, 0.08, 0.03 # ls -l /sys/firmware/efi/ total 0 -r--r--r-- 1 root root 4096 Mar 12 11:50 config_table dr-xr-xr-x 2 root root 0 Mar 12 06:48 efivars -r--r--r-- 1 root root 4096 Mar 12 11:50 fw_platform_size -r--r--r-- 1 root root 4096 Mar 12 11:50 fw_vendor -r--r--r-- 1 root root 4096 Mar 12 11:50 runtime -r-------- 1 root root 4096 Mar 12 11:48 systab drwxr-xr-x 67 root root 0 Mar 12 11:50 vars
guys, it's my only system. i don't wanna break it again and then spend another some time to recover it. I use efistub.
i can make some during next kernel update, but not now
also i had rc_parallel="YES"
(In reply to Perfect Gentleman from comment #16) > also i had rc_parallel="YES" compiled kernel with "CONFIG_EFIVAR_FS is not set", system is bootable, but with rc_parallel="YES" it is non-bootable.
Created attachment 466870 [details] rc.log my rc.log Two reboot in single mode: first with parallel=yes, second with "no".
Have similar issue with openrc-0.24
Created attachment 466872 [details] screenshot (photo)
rc.log when parallel ----------------------- rc boot logging started at Sat Mar 11 11:13:01 2017 modules-load | * modules-load: waiting for modules (50 seconds) hwclock | * hwclock: waiting for modules-load (50 seconds) modules | * modules: waiting for hwclock (50 seconds) localmount | * localmount: waiting for modules-load (50 seconds) mtab |swap | * * mtab: waiting for modules-load (50 seconds)swap: waiting for modules-load (50 seconds) procfs | * procfs: waiting for modules-load (50 seconds) root | * root: waiting for modules-load (50 seconds) sysctl |fsck | * * sysctl: waiting for modules-load (50 seconds)fsck: waiting for modules-load (50 seconds) bootmisc | * bootmisc: waiting for modules-load (50 seconds) hostname | * binfmt |hostname: waiting for modules-load (50 seconds) * binfmt: waiting for hwclock (50 seconds) loopback | * loopback: waiting for modules-load (50 seconds) termencoding | * termencoding: waiting for modules-load (50 seconds) urandom | * urandom: waiting for modules-load (50 seconds) keymaps | * keymaps: waiting for modules-load (50 seconds) opentmpfiles-setup| * opentmpfiles-setup: waiting for modules-load (50 seconds) hwclock | * hwclock: waiting for modules-load (41 seconds) modules | * modules: waiting for hwclock (41 seconds) modules-load | * modules-load: waiting for modules (41 seconds) localmount | * localmount: waiting for modules-load (41 seconds) swap | * swap: waiting for modules-load (41 seconds) mtab | * mtab: waiting for modules-load (41 seconds) root | * root: waiting for modules-load (41 seconds) procfs | * procfs: waiting for modules-load (41 seconds) termencoding | * termencoding: waiting for modules-load (41 seconds)binfmt |urandom | * * binfmt: waiting for hwclock (41 seconds)urandom: waiting for modules-load (41 seconds) loopback | * loopback: waiting for modules-load (41 seconds) hostname | * hostname: waiting for modules-load (41 seconds) fsck | * fsck: waiting for modules-load (41 seconds) opentmpfiles-setup| * opentmpfiles-setup: waiting for modules-load (41 seconds) keymaps | * keymaps: waiting for modules-load (41 seconds) sysctl | * sysctl: waiting for modules-load (41 seconds) bootmisc | * bootmisc: waiting for modules-load (41 seconds) modules-load | * modules-load: waiting for modules (32 seconds) hwclock | * hwclock: waiting for modules-load (32 seconds) modules | * modules: waiting for hwclock (32 seconds) localmount | * localmount: waiting for modules-load (32 seconds) swap | * swap: waiting for modules-load (32 seconds) root | * root: waiting for modules-load (32 seconds) mtab | * procfs |mtab: waiting for modules-load (32 seconds) * procfs: waiting for modules-load (32 seconds) binfmt | * fsck |binfmt: waiting for hwclock (32 seconds) * fsck: waiting for modules-load (32 seconds) urandom |hostname | * * urandom: waiting for modules-load (32 seconds)hostname: waiting for modules-load (32 seconds) opentmpfiles-setup| * opentmpfiles-setup: waiting for modules-load (32 seconds) loopback |sysctl | * keymaps | * loopback: waiting for modules-load (32 seconds) * sysctl: waiting for modules-load (32 seconds)keymaps: waiting for modules-load (32 seconds) bootmisc | * termencoding |bootmisc: waiting for modules-load (32 seconds) * termencoding: waiting for modules-load (32 seconds) modules | * modules: waiting for hwclock (23 seconds) modules-load | * modules-load: waiting for modules (23 seconds) hwclock | * hwclock: waiting for modules-load (23 seconds) localmount | * localmount: waiting for modules-load (23 seconds) swap | * swap: waiting for modules-load (23 seconds) mtab |root | * * mtab: waiting for modules-load (23 seconds)root: waiting for modules-load (23 seconds) procfs | * procfs: waiting for modules-load (23 seconds) binfmt | * binfmt: waiting for hwclock (23 seconds) loopback | * loopback: waiting for modules-load (23 seconds) termencoding | * termencoding: waiting for modules-load (23 seconds) keymaps | * keymaps: waiting for modules-load (23 seconds) urandom | * urandom: waiting for modules-load (23 seconds) sysctl | * sysctl: waiting for modules-load (23 seconds) opentmpfiles-setup| * fsck |opentmpfiles-setup: waiting for modules-load (23 seconds)bootmisc | * * fsck: waiting for modules-load (23 seconds)bootmisc: waiting for modules-load (23 seconds) hostname | * hostname: waiting for modules-load (23 seconds) modules | * modules: waiting for hwclock (14 seconds) modules-load | * modules-load: waiting for modules (14 seconds) hwclock | * hwclock: waiting for modules-load (14 seconds) localmount | * localmount: waiting for modules-load (14 seconds) swap | * swap: waiting for modules-load (14 seconds) procfs | * procfs: waiting for modules-load (14 seconds) mtab |root | * mtab: waiting for modules-load (14 seconds) * root: waiting for modules-load (14 seconds) loopback | * loopback: waiting for modules-load (14 seconds) binfmt |termencoding | * * binfmt: waiting for hwclock (14 seconds)termencoding: waiting for modules-load (14 seconds) sysctl | * sysctl: waiting for modules-load (14 seconds) opentmpfiles-setup| * opentmpfiles-setup: waiting for modules-load (14 seconds) bootmisc | * bootmisc: waiting for modules-load (14 seconds) fsck |hostname |urandom | * * * hostname: waiting for modules-load (14 seconds)fsck: waiting for modules-load (14 seconds)urandom: waiting for modules-load (14 seconds) keymaps | * keymaps: waiting for modules-load (14 seconds)
If the log output is correct, then there seems to be a dependency loop. modules-load needs modules hwclock needs modules-load modules needs hwclock The hangup does not come at a surprise then. However, modules-load does not seems to have any dependency on hwclock in it's depend section. Broken dependency claculation/handling for parallel startup maybe? I can reproduce the problem with parallel startup.
Oh, and once the waiting period times out on one of the scripts in the dependency look, the scripts starts and all other seems to come up. Still, this is certainly not the intended behavior ;-).
Additional Info, excerpt from deptree: depinfo_12_service='hwclock' depinfo_12_iwant_0='modules' depinfo_12_ibefore_22='modules-load' depinfo_23_service='modules' depinfo_23_iwant_0='modules-load' depinfo_23_wantsme_0='hwclock' depinfo_24_service='modules-load' depinfo_24_iafter_0='hwclock' depinfo_24_wantsme_0='modules' So, hwclock requires modules, which in turn requires modules-load. modules-load SHOULD be started after hwclock. After/before were considered no real deps, but rather means of ordering. Since hwclock has a 'before *' in depend and 'want' on modules (which wants modules-load) hwclock should be started before everything except those two. Really looks like a misevaluation of deps during startup.
Please test with openrc-0.24.1 and let me know if you still have the issue. Thanks much. William
(In reply to William Hubbs from comment #25) > Please test with openrc-0.24.1 and let me know if you still have the Ok on my side. Thanks