View previous topic :: View next topic |
Author |
Message |
sebaro Veteran
Joined: 03 Jul 2006 Posts: 1141 Location: Romania
|
Posted: Mon Aug 14, 2017 3:57 pm Post subject: OpenRC warnings/questions |
|
|
Booting with OpenRC works but there are some warnings.
GRUB2
Code: | linux /boot/vmlinuz-4.12.3-gentoo-b6 root=/dev/sda2 rootfstype=ext4 init=/sbin/openrc-init ro quiet libata.force=noncq |
rc-update show sysinit
Code: |
devfs | sysinit
dmesg | sysinit
kmod-static-nodes | sysinit
sysfs | sysinit
udev | sysinit
udev-trigger | sysinit
|
Warning 1: "md5sum is missing, which suggests /usr is not mounted"
Warning 2: "/dev/null: Read-only file system"
Warning 3: "fopen('/run/openrc/rc.log') no such file or directory"
Question 1: How do I keep the sysinit runlevel messages on console?
Question 2: How do I use "openrc-shutdown" as normal user?
Last edited by sebaro on Wed Aug 16, 2017 8:47 am; edited 1 time in total |
|
Back to top |
|
|
josephg l33t
Joined: 10 Jan 2016 Posts: 783 Location: usually offline
|
Posted: Tue Aug 15, 2017 6:06 pm Post subject: Re: OpenRC warnings/questions |
|
|
sebaro wrote: | Question 1: How do I keep the sysinit runlevel messages on console? |
early printk
sebaro wrote: | Question 2: How do I use "openrc-shutdown" as normal user? |
sudo _________________ "Growth for the sake of growth is the ideology of the cancer cell." Edward Abbey |
|
Back to top |
|
|
sebaro Veteran
Joined: 03 Jul 2006 Posts: 1141 Location: Romania
|
Posted: Tue Aug 15, 2017 7:14 pm Post subject: Re: OpenRC warnings/questions |
|
|
josephg wrote: | sebaro wrote: | Question 1: How do I keep the sysinit runlevel messages on console? |
early printk
|
You mean the kernel is clearing the console?
I think maybe switching framebuffer from efifb to radeondrmfb causes this. |
|
Back to top |
|
|
josephg l33t
Joined: 10 Jan 2016 Posts: 783 Location: usually offline
|
Posted: Tue Aug 15, 2017 9:30 pm Post subject: Re: OpenRC warnings/questions |
|
|
sebaro wrote: | josephg wrote: | sebaro wrote: | Question 1: How do I keep the sysinit runlevel messages on console? |
early printk
|
You mean the kernel is clearing the console?
I think maybe switching framebuffer from efifb to radeondrmfb causes this. |
you said your sysinit messages were getting cleared. you meant your console gets cleared before login? that's done by agetty. man agetty and /etc/agetty. _________________ "Growth for the sake of growth is the ideology of the cancer cell." Edward Abbey
Last edited by josephg on Tue Aug 15, 2017 9:41 pm; edited 1 time in total |
|
Back to top |
|
|
Ant P. Watchman
Joined: 18 Apr 2009 Posts: 6920
|
Posted: Tue Aug 15, 2017 9:33 pm Post subject: Re: OpenRC warnings/questions |
|
|
*sigh* looks like you got hit by a troll. Let's try this again.
sebaro wrote: | Question 1: How do I keep the sysinit runlevel messages on console? |
Run agetty with --noclear. It sounds like you're not using standard init so that goes in /etc/conf.d/agetty.
Quote: | Question 2: How do I use "openrc-shutdown" as normal user? |
Normally you'd not do that, instead run acpid and use the physical power button to run shutdown. But here you'll either have to edit /etc/acpi/actions/powerbtn.sh or make a openrc-shutdown -> shutdown symlink. |
|
Back to top |
|
|
josephg l33t
Joined: 10 Jan 2016 Posts: 783 Location: usually offline
|
Posted: Tue Aug 15, 2017 9:47 pm Post subject: Re: OpenRC warnings/questions |
|
|
Ant P. wrote: | *sigh* looks like you got hit by a troll. Let's try this again. |
*sigh* some folks just can't resist name-calling to make themselves look better.. he (and his ilk) can help you now _________________ "Growth for the sake of growth is the ideology of the cancer cell." Edward Abbey
Last edited by josephg on Wed Aug 16, 2017 8:09 am; edited 1 time in total |
|
Back to top |
|
|
sebaro Veteran
Joined: 03 Jul 2006 Posts: 1141 Location: Romania
|
Posted: Wed Aug 16, 2017 6:00 am Post subject: |
|
|
For console:
OpenRC logging doesn't work for sysinit runlevel and I want to see all boot messages from init to login.
I see the OpenRC messages for sysinit runlevel, but then the screen is cleared (goes blank), then I see the boot and default runlevels messages, then the login prompt (agetty "--noclear" is set).
So does OpenRC clear the console after sysinit or is it because of the framebuffer switching from efi to radeon or is something else?
For shutdown:
openrc-shutdown allows only root to use it
Code: | if (geteuid() != 0 && ! do_dryrun)
eerrorx("%s: you must be root\n", applet);
|
So sudo or setuid are the only options I see here. |
|
Back to top |
|
|
charles17 Advocate
Joined: 02 Mar 2008 Posts: 3685
|
Posted: Wed Aug 16, 2017 7:45 am Post subject: |
|
|
sebaro wrote: | OpenRC logging doesn't work for sysinit runlevel ... |
One one of my systems it does. Maybe due to using an initramfs which is needed for lvm2. |
|
Back to top |
|
|
sebaro Veteran
Joined: 03 Jul 2006 Posts: 1141 Location: Romania
|
Posted: Wed Aug 16, 2017 8:42 am Post subject: |
|
|
charles17 wrote: | sebaro wrote: | OpenRC logging doesn't work for sysinit runlevel ... |
One one of my systems it does. Maybe due to using an initramfs which is needed for lvm2. |
Maybe, from rc.conf:
Quote: | # NOTE: Linux systems require the devfs service to be started before
# logging can take place and as such cannot log the sysinit runlevel. |
|
|
Back to top |
|
|
|