Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Service bootmisc needs non existent service ...
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
devilheart
l33t
l33t


Joined: 17 Mar 2005
Posts: 848
Location: Villach, Austria

PostPosted: Thu Jul 29, 2021 11:50 am    Post subject: [SOLVED] Service bootmisc needs non existent service ... Reply with quote

Hi all,

after an update on all of my Gentoo clients, I have one which gives me a lot of problems.
It fails to boot with these messages

Code:
Service bootmisc needs non existent service termencoding
Service cornie needs non existent service localmount
Service bootmisc needs non existent service localmount
Service dbus needs non existent service localmount
Service dhcpcd needs non existent service localmount


And then I see the login prompt.
The only way to move forward is to login as root, mount / read-write and run

Code:
openrc sysinit
openrc boot
openrc default


after this the system is usable, but the problem happens at every reboot.

in the last 16 months we worked from home and I kept the workstations update, but no one used them from the office.
I rebooted them a few times... but I cannot pinpoint what was updated that could cause this issue.
Recently I replaced sys-apps/opentmpfiles with sys-apps/systemd-tmpfiles but I'm not sure if this could be the cause...
Of course I ran etc-update an I'm running openrc 0.42.1-r1

Any ideas?

Some additional info:
Code:

> # emerge --info
Portage 3.0.20 (python 3.9.5-final-0, default/linux/amd64/17.1, gcc-10.3.0, glibc-2.33-r1, 5.10.52-gentoo x86_64)
=================================================================
System uname: Linux-5.10.52-gentoo-x86_64-Intel-R-_Core-TM-_i7-5557U_CPU_@_3.10GHz-with-glibc2.33
KiB Mem:    16279204 total,  16029340 free
KiB Swap:   15651556 total,  15651556 free
Timestamp of repository gentoo: Tue, 27 Jul 2021 15:45:01 +0000
Head commit of repository gentoo: 37e08a95ad3d76d744351d89cc0100ecb6b94641
sh bash 5.1_p8
ld GNU ld (Gentoo 2.35.2 p1) 2.35.2
app-shells/bash:          5.1_p8::gentoo
dev-lang/perl:            5.34.0::gentoo
dev-lang/python:          3.9.5_p2::gentoo
dev-lang/rust:            1.52.1::gentoo
dev-util/cmake:           3.18.5::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.7::gentoo
sys-apps/openrc:          0.42.1-r1::gentoo
sys-apps/sandbox:         2.24::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r5::gentoo
sys-devel/automake:       1.16.3-r1::gentoo
sys-devel/binutils:       2.35.2::gentoo
sys-devel/gcc:            10.3.0-r2::gentoo
sys-devel/gcc-config:     2.4::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.10::gentoo (virtual/os-headers)
sys-libs/glibc:           2.33-r1::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync5.de.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-metamanifest: no
    sync-rsync-extra-opts:
    sync-rsync-verify-jobs: 1

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=sandybridge"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /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 /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe -march=sandybridge"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps=y --nospinner --keep-going y -q --quiet-build y"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="rsync://ftp-stud.hs-esslingen.de/gentoo/"
LANG="en_GB.utf8@euro"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-O2 -Wl,--sort-common -Wl,-S"
LINGUAS="en de it en-GB"
MAKEOPTS="-j2"
PKGDIR="/var/cache/binpkgs"
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="/var/tmp"
USE="X acl alsa amd64 bzip2 cli crypt dri fortran gdbm iconv ipv6 jpeg kerberos libcxx libglvnd libtirpc multilib ncurses nls nptl opengl openmp pam pcre png pulseaudio readline seccomp split-usr ssl tcpd tiff unicode xattr xinerama zlib" ABI_X86="64" ADA_TARGET="gnat_2018" 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="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="emu efi-32 efi-64 coreboot pc" INPUT_DEVICES="mouse keyboard evdev" KERNEL="linux" L10N="en de it" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-3 php7-4" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9" RUBY_TARGETS="ruby26" USERLAND="GNU" VIDEO_CARDS="intel i915" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RUSTFLAGS



Last edited by devilheart on Wed Sep 01, 2021 1:54 pm; edited 1 time in total
Back to top
View user's profile Send private message
freke
l33t
l33t


Joined: 23 Jan 2003
Posts: 977
Location: Somewhere in Denmark

PostPosted: Thu Jul 29, 2021 7:22 pm    Post subject: Reply with quote

/etc/fstab is correct for /?

Sounds like it's not remounted rw if you have to do it?

Can you do rc-status sysinit, rc-status boot after login (and before manually running through the different levels) - to see what has started and what has not.
/etc/init.d/root is responsible for remounting root rw in the boot runlevel.
Back to top
View user's profile Send private message
devilheart
l33t
l33t


Joined: 17 Mar 2005
Posts: 848
Location: Villach, Austria

PostPosted: Fri Jul 30, 2021 11:47 am    Post subject: Reply with quote

fstab is correct

Code:

> rc-status sysinit
Runlevel: sysinit
 cgroups                                                           [  started  ]
 devfs                                                            [  started  ]


Code:

> rc-status boot
Runlevel: default
 dbus                                                              [  stopped  ]
 display-manager                                                   [  stopped  ]
 cronie                                                            [  stopped  ]
 dhcpcd                                                            [  stopped  ]
Dynamic Runlevel: hotplugged
Dynamic Runlevel: needed/wanted
Dynamic Runlevel: manual


it seems that root was not started... and should start at boot

and the first lines on screen are
Code:

* Mounting /proc ...
* Mounting /run ...
* /run/openrc: creating directory
* /run/lock: creating directory
* /run/lock: correcting owner


followed by some lines which look like the output from dmesg (at least the tail of it)
Back to top
View user's profile Send private message
freke
l33t
l33t


Joined: 23 Jan 2003
Posts: 977
Location: Somewhere in Denmark

PostPosted: Fri Jul 30, 2021 2:04 pm    Post subject: Reply with quote

Seems like lots of services/inits are missing?
Code:
binhost /etc # rc-status sysinit
Runlevel: sysinit
 devfs                                                                                                                                             [  started  ]
 kmod-static-nodes                                                                                                                                 [  started  ]
 stmpfiles-dev                                                                                                                                     [  started  ]
 sysfs                                                                                                                                             [  started  ]
 udev                                                                                                                                              [  started  ]
 dmesg                                                                                                                                             [  started  ]
 udev-trigger                                                                                                                                      [  started  ]
 cgroups                                                                                                                                           [  started  ]

binhost ~ # rc-status boot
Runlevel: boot
 modules                                                                                                                                           [  started  ]
 fsck                                                                                                                                              [  started  ]
 root                                                                                                                                              [  started  ]
 mtab                                                                                                                                              [  started  ]
 swap                                                                                                                                              [  started  ]
 localmount                                                                                                                                        [  started  ]
 stmpfiles-setup                                                                                                                                   [  started  ]
 apparmor                                                                                                                                          [  started  ]
 sysctl                                                                                                                                            [  started  ]
 bootmisc                                                                                                                                          [  started  ]
 termencoding                                                                                                                                      [  started  ]
 save-termencoding                                                                                                                                 [  started  ]
 hostname                                                                                                                                          [  started  ]
 procfs                                                                                                                                            [  started  ]
 binfmt                                                                                                                                            [  started  ]
 urandom                                                                                                                                           [  started  ]
 keymaps                                                                                                                                           [  started  ]
 save-keymaps                                                                                                                                      [  started  ]
 loopback                                                                                                                                          [  started  ]

Any errors in that dmesg-output?

Anything happened in /etc/runlevels/sysinit / /etc/runlevels/boot? (ie. is the symlinks there for the services to be started
Code:
binhost /etc/runlevels/sysinit # ls -l
total 0
lrwxrwxrwx 1 root root 19 May  4 11:45 cgroups -> /etc/init.d/cgroups
lrwxrwxrwx 1 root root 17 May  4 11:45 devfs -> /etc/init.d/devfs
lrwxrwxrwx 1 root root 17 May  4 11:45 dmesg -> /etc/init.d/dmesg
lrwxrwxrwx 1 root root 29 Feb 13  2020 kmod-static-nodes -> /etc/init.d/kmod-static-nodes
lrwxrwxrwx 1 root root 25 Jul  9 23:45 stmpfiles-dev -> /etc/init.d/stmpfiles-dev
lrwxrwxrwx 1 root root 17 May  4 11:45 sysfs -> /etc/init.d/sysfs
lrwxrwxrwx 1 root root 16 Feb 13  2020 udev -> /etc/init.d/udev
lrwxrwxrwx 1 root root 24 Feb 13  2020 udev-trigger -> /etc/init.d/udev-trigger
Back to top
View user's profile Send private message
devilheart
l33t
l33t


Joined: 17 Mar 2005
Posts: 848
Location: Villach, Austria

PostPosted: Fri Jul 30, 2021 2:16 pm    Post subject: Reply with quote

freke wrote:
Seems like lots of services/inits are missing?
Code:
binhost /etc # rc-status sysinit
Runlevel: sysinit
 devfs                                                                                                                                             [  started  ]
 kmod-static-nodes                                                                                                                                 [  started  ]
 stmpfiles-dev                                                                                                                                     [  started  ]
 sysfs                                                                                                                                             [  started  ]
 udev                                                                                                                                              [  started  ]
 dmesg                                                                                                                                             [  started  ]
 udev-trigger                                                                                                                                      [  started  ]
 cgroups                                                                                                                                           [  started  ]

binhost ~ # rc-status boot
Runlevel: boot
 modules                                                                                                                                           [  started  ]
 fsck                                                                                                                                              [  started  ]
 root                                                                                                                                              [  started  ]
 mtab                                                                                                                                              [  started  ]
 swap                                                                                                                                              [  started  ]
 localmount                                                                                                                                        [  started  ]
 stmpfiles-setup                                                                                                                                   [  started  ]
 apparmor                                                                                                                                          [  started  ]
 sysctl                                                                                                                                            [  started  ]
 bootmisc                                                                                                                                          [  started  ]
 termencoding                                                                                                                                      [  started  ]
 save-termencoding                                                                                                                                 [  started  ]
 hostname                                                                                                                                          [  started  ]
 procfs                                                                                                                                            [  started  ]
 binfmt                                                                                                                                            [  started  ]
 urandom                                                                                                                                           [  started  ]
 keymaps                                                                                                                                           [  started  ]
 save-keymaps                                                                                                                                      [  started  ]
 loopback                                                                                                                                          [  started  ]


Well, that's the situation right after boot, but after I run openrc sysinit and openrc boot I see
Code:

> rc-status sysinit
Runlevel: sysinit
 sysfs                                                                                                                        [  started  ]
 devfs                                                                                                                        [  started  ]
 udev                                                                                                                         [  started  ]
 dmesg                                                                                                                        [  started  ]
 kmod-static-nodes                                                                                                            [  started  ]
 stmpfiles-dev                                                                                                                [  started  ]
 udev-trigger                                                                                                                 [  started  ]
 root                                                                                                                         [  started  ]
 cgroups                                                                                                                      [  started  ]

> rc-status boot
Runlevel: boot
 modules                                                                                                                      [  started  ]
 hwclock                                                                                                                      [  started  ]
 fsck                                                                                                                         [  started  ]
 termencoding                                                                                                                 [  started  ]
 mtab                                                                                                                         [  started  ]
 swap                                                                                                                         [  started  ]
 localmount                                                                                                                   [  started  ]
 sysctl                                                                                                                       [  started  ]
 bootmisc                                                                                                                     [  started  ]
 keymaps                                                                                                                      [  started  ]
 save-keymaps                                                                                                                 [  started  ]
 procfs                                                                                                                       [  started  ]
 hostname                                                                                                                     [  started  ]
 stmpfiles-setup                                                                                                              [  started  ]
 binfmt                                                                                                                       [  started  ]
 urandom                                                                                                                      [  started  ]
 save-termencoding                                                                                                            [  started  ]
 loopback                                                                                                                     [  started  ]




Quote:
Any errors in that dmesg-output?

Nothing suspicious...
https://pastebin.com/6xsMTSET

Quote:
Anything happened in /etc/runlevels/sysinit / /etc/runlevels/boot? (ie. is the symlinks there for the services to be started
Code:
binhost /etc/runlevels/sysinit # ls -l
total 0
lrwxrwxrwx 1 root root 19 May  4 11:45 cgroups -> /etc/init.d/cgroups
lrwxrwxrwx 1 root root 17 May  4 11:45 devfs -> /etc/init.d/devfs
lrwxrwxrwx 1 root root 17 May  4 11:45 dmesg -> /etc/init.d/dmesg
lrwxrwxrwx 1 root root 29 Feb 13  2020 kmod-static-nodes -> /etc/init.d/kmod-static-nodes
lrwxrwxrwx 1 root root 25 Jul  9 23:45 stmpfiles-dev -> /etc/init.d/stmpfiles-dev
lrwxrwxrwx 1 root root 17 May  4 11:45 sysfs -> /etc/init.d/sysfs
lrwxrwxrwx 1 root root 16 Feb 13  2020 udev -> /etc/init.d/udev
lrwxrwxrwx 1 root root 24 Feb 13  2020 udev-trigger -> /etc/init.d/udev-trigger

Seems fine...
Code:

> # ls -l /etc/runlevels/sysinit
total 0
lrwxrwxrwx 1 root root 19 Jul 29 12:23 cgroups -> /etc/init.d/cgroups
lrwxrwxrwx 1 root root 17 Jul 29 12:23 devfs -> /etc/init.d/devfs
lrwxrwxrwx 1 root root 17 Jul 29 12:23 dmesg -> /etc/init.d/dmesg
lrwxrwxrwx 1 root root 29 Nov 23  2017 kmod-static-nodes -> /etc/init.d/kmod-static-nodes
lrwxrwxrwx 1 root root 25 Jul 29 14:34 stmpfiles-dev -> /etc/init.d/stmpfiles-dev
lrwxrwxrwx 1 root root 17 Jul 29 12:23 sysfs -> /etc/init.d/sysfs
lrwxrwxrwx 1 root root 16 Nov 23  2017 udev -> /etc/init.d/udev
lrwxrwxrwx 1 root root 24 Nov 23  2017 udev-trigger -> /etc/init.d/udev-trigger

> # ls -l /etc/runlevels/boot
total 0
lrwxrwxrwx 1 root root 18 Jul 29 12:23 binfmt -> /etc/init.d/binfmt
lrwxrwxrwx 1 root root 20 Jul 29 12:23 bootmisc -> /etc/init.d/bootmisc
lrwxrwxrwx 1 root root 16 Jul 29 12:23 fsck -> /etc/init.d/fsck
lrwxrwxrwx 1 root root 20 Jul 29 12:23 hostname -> /etc/init.d/hostname
lrwxrwxrwx 1 root root 19 Jul 29 12:23 hwclock -> /etc/init.d/hwclock
lrwxrwxrwx 1 root root 19 Jul 29 12:23 keymaps -> /etc/init.d/keymaps
lrwxrwxrwx 1 root root 22 Jul 29 12:23 localmount -> /etc/init.d/localmount
lrwxrwxrwx 1 root root 20 Jul 29 12:23 loopback -> /etc/init.d/loopback
lrwxrwxrwx 1 root root 19 Jul 29 12:23 modules -> /etc/init.d/modules
lrwxrwxrwx 1 root root 16 Jul 29 12:23 mtab -> /etc/init.d/mtab
lrwxrwxrwx 1 root root 18 Jul 29 12:23 procfs -> /etc/init.d/procfs
lrwxrwxrwx 1 root root 16 Jul 30 17:40 root -> /etc/init.d/root
lrwxrwxrwx 1 root root 24 Jul 29 12:23 save-keymaps -> /etc/init.d/save-keymaps
lrwxrwxrwx 1 root root 29 Jul 29 12:23 save-termencoding -> /etc/init.d/save-termencoding
lrwxrwxrwx 1 root root 27 Jul 29 14:34 stmpfiles-setup -> /etc/init.d/stmpfiles-setup
lrwxrwxrwx 1 root root 16 Jul 29 12:23 swap -> /etc/init.d/swap
lrwxrwxrwx 1 root root 18 Jul 29 12:23 sysctl -> /etc/init.d/sysctl
lrwxrwxrwx 1 root root 24 Jul 29 12:23 termencoding -> /etc/init.d/termencoding
lrwxrwxrwx 1 root root 19 Jul 29 12:23 urandom -> /etc/init.d/urandom
Back to top
View user's profile Send private message
devilheart
l33t
l33t


Joined: 17 Mar 2005
Posts: 848
Location: Villach, Austria

PostPosted: Wed Sep 01, 2021 1:53 pm    Post subject: Reply with quote

I noticed one thing... when I build a new kernel and boot it, it work only once. The problem reappears at every subsequent reboot.

To solve the problem I ran a "make mrproper", I copied the kernel's .config file from another host with similar hardware, build the kernel and rebooted.
Problem is gone, but I can't really pinpoint the root cause, unfortunately
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum