Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
OpenRC warnings/questions
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
sebaro
Veteran
Veteran


Joined: 03 Jul 2006
Posts: 1141
Location: Romania

PostPosted: Mon Aug 14, 2017 3:57 pm    Post subject: OpenRC warnings/questions Reply with quote

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
View user's profile Send private message
josephg
l33t
l33t


Joined: 10 Jan 2016
Posts: 783
Location: usually offline

PostPosted: Tue Aug 15, 2017 6:06 pm    Post subject: Re: OpenRC warnings/questions Reply with quote

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
View user's profile Send private message
sebaro
Veteran
Veteran


Joined: 03 Jul 2006
Posts: 1141
Location: Romania

PostPosted: Tue Aug 15, 2017 7:14 pm    Post subject: Re: OpenRC warnings/questions Reply with quote

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
View user's profile Send private message
josephg
l33t
l33t


Joined: 10 Jan 2016
Posts: 783
Location: usually offline

PostPosted: Tue Aug 15, 2017 9:30 pm    Post subject: Re: OpenRC warnings/questions Reply with quote

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
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 6920

PostPosted: Tue Aug 15, 2017 9:33 pm    Post subject: Re: OpenRC warnings/questions Reply with quote

*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
View user's profile Send private message
josephg
l33t
l33t


Joined: 10 Jan 2016
Posts: 783
Location: usually offline

PostPosted: Tue Aug 15, 2017 9:47 pm    Post subject: Re: OpenRC warnings/questions Reply with quote

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
View user's profile Send private message
sebaro
Veteran
Veteran


Joined: 03 Jul 2006
Posts: 1141
Location: Romania

PostPosted: Wed Aug 16, 2017 6:00 am    Post subject: Reply with quote

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
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 3685

PostPosted: Wed Aug 16, 2017 7:45 am    Post subject: Reply with quote

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
View user's profile Send private message
sebaro
Veteran
Veteran


Joined: 03 Jul 2006
Posts: 1141
Location: Romania

PostPosted: Wed Aug 16, 2017 8:42 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing 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