Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Kernel & Hardware
  • Search

Impermanent Sysinit runlevel? (solved)

Kernel not recognizing your hardware? Problems with power management or PCMCIA? What hardware is compatible with Gentoo? See here. (Only for kernels supported by Gentoo.)
Post Reply
Advanced search
3 posts • Page 1 of 1
Author
Message
mikb
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 135
Joined: Wed Dec 14, 2005 10:52 pm
Location: Sydney Australia
Contact:
Contact mikb
Website

Impermanent Sysinit runlevel? (solved)

  • Quote

Post by mikb » Thu Aug 25, 2022 6:01 am

I am having a weird problem with booting the system.

I use genkernel to generate the initramfs for my system.

The kernel command line contains the parameter

Code: Select all

real_init=/sbin/openrc-init
What happens is I can see the system enter the Sysinit runlevel, and run the following services:

Code: Select all

$ rc-update show sysinit
              cgroups | sysinit
                devfs | sysinit
                dmesg | sysinit
    kmod-static-nodes | sysinit
                sysfs | sysinit
 systemd-tmpfiles-setup-dev | sysinit
                 udev | sysinit
          udev-settle | sysinit
         udev-trigger | sysinit
All complete successfully.

But when the system moves to the boot and default runlevels, all of that initialization state is lost. All services are seen as not started.

The consequence of this is that NetworkManager cannot see the WiFi adapter and blocks, the display manager will not start, laptop-mode will not start, and the system displays all sorts of quirky behaviours (like horrible display flicker),

starting udev-trigger manually once the system has got to default and is in multi-user will cause NetworkManager to find the Wifi adapter, which will allow the display manager to start manually, but that's the only workaround I have found, and I am not sure it isn't having unintended consequences.


I'm at a loss how to even debug this (after all, there is no openrc logging at sysinit), can anyone offer suggestions of things to try?
Last edited by mikb on Fri Aug 26, 2022 1:39 am, edited 1 time in total.
With sufficient thrust, pigs fly just fine (RFC 1925, apparently talking about Gentoo)
Top
grknight
Retired Dev
Retired Dev
Posts: 2565
Joined: Fri Feb 20, 2015 9:36 pm

  • Quote

Post by grknight » Thu Aug 25, 2022 1:46 pm

The current running state information is stored at /run/openrc/

Often /run is a tmpfs so this should be created very early to write to.

genkernel's initramfs looks to do this, as it should, early on in its linuxrc file.

If for some reason it is reset or over-mounted, then this info could be lost/hidden.

One thing that also should be there is /run/udev.pid as udev is started in sysinit.

I have run openrc-init longer than most have and never had such an issue.
Top
mikb
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 135
Joined: Wed Dec 14, 2005 10:52 pm
Location: Sydney Australia
Contact:
Contact mikb
Website

  • Quote

Post by mikb » Fri Aug 26, 2022 1:38 am

You were correct. Armed with the hypothesis that /run was being remounted, I went digging through the many places in startup where things get mounted.

Sure enough localmount mounts everything in /etc/fstab that isn't marked "noauto", and that included a line mounting /run with noatime.

Removing that line from /etc/fstab has restored normal operation, with no apparent ill effects

Thank you!
With sufficient thrust, pigs fly just fine (RFC 1925, apparently talking about Gentoo)
Top
Post Reply

3 posts • Page 1 of 1

Return to “Kernel & Hardware”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic