Summary: | sys-apps/openrc: /var/log/rc.log is written before fsck/localmount | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Vladimir Berezhnoy <non7top> |
Component: | [OLD] baselayout | Assignee: | OpenRC Team <openrc> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | clemente.aguiar, dogshu, Eddy, gentoo3, Ikonta, kaikaikai, kamacoder, nikoli, phmagic, poncho, xman00 |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 394205 | ||
Attachments: | screenshot of error and warning |
Description
Vladimir Berezhnoy
2011-11-15 19:07:33 UTC
does it only happen when you're doing interactive mode ? No, in default mode also. I chose interactive mode to identify at which step the error message is shown. FYI: there has been considerable discussion in this forum http://forums.gentoo.org/viewtopic.php?p=6889054#6889054 bug is just mentioned there .. This error occurs at line 280 of openrc-0.9.4/src/rc/rc-logger.c I can't see any checks for even / being mounted rw let alone /var/log, so I not sure how the code is supposed to work correctly. Created attachment 295419 [details]
screenshot of error and warning
confirmed, see attached screenshot.
FYI, after boot has completed, /var/log/rc.log contains all boot information starting from "/proc is already mounted, skipping" all the way to "Starting local", and /lib64/rc/init.d/rc.log does not exist. Looks like these errors are being printed for no reason.
As a marginal topic, I've a similar problem during shutdown (I want to log to a unmounted filesystem, I don't feel my case as a bug). What could interest you is that in that case the fallback rc.log file is /lib64/rc/cache/rc.log Regards, Sergio FYI, I was facing this problem, I solved by adding localmount & mtab to sysinit rc-update add localmount sysinit rc-update add mtab sysinit Best Regards, Eddy FYI, I was facing this problem, I solved by adding localmount & mtab to sysinit rc-update add localmount sysinit rc-update add mtab sysinit Best Regards, Eddy (In reply to comment #5) > Created attachment 295419 [details] > screenshot of error and warning > > confirmed, see attached screenshot. > > FYI, after boot has completed, /var/log/rc.log contains all boot information > starting from "/proc is already mounted, skipping" all the way to "Starting > local", and /lib64/rc/init.d/rc.log does not exist. Looks like these errors > are being printed for no reason. While boot process it seems to be OK. While shutdown initialized from GUI also no warning messages. But when I try to halt system with poweroff command I see warning message (/var/log/rc.log fopen error). x86 stable, /var on separate device. Like others I also faced this problem during shutdown. First /var is umount'ed, then a write thereto attempted. Not a big deal since a copy is saved to / anyway but is very annoying. Same here on shutdown. Same here, I will try what Eddy proposed. There are also something strange right when loading initramfs in my case: /proc is already mounted, skipping udev-mount :/dev is already mounted proc mount is also defined in my /etc/fstab rc-update add localmount sysinit rc-update add mtab sysinit fixed situation. (In reply to comment #13) > rc-update add localmount sysinit > rc-update add mtab sysinit > > fixed situation. Glad to hear that :-) Eddy (In reply to comment #13) > rc-update add localmount sysinit > rc-update add mtab sysinit > > fixed situation. That's really not good as a solution, as it will cause a lot of the boot level to be forced into sysinit instead. (In reply to comment #15) > (In reply to comment #13) > > rc-update add localmount sysinit > > rc-update add mtab sysinit > > > > fixed situation. > > That's really not good as a solution, as it will cause a lot of the boot level > to be forced into sysinit instead. It's been a time for me using it and faced no problem. Best Regards, Eddy This has been fixed by commit ec65f181eab6289101a0c0df624c9b022f3742d0 and 49e99a739361b977b0841c602f10fc9895285197. http://git.overlays.gentoo.org/gitweb/?p=proj/openrc.git;a=commit;h=ec65f181eab6289101a0c0df624c9b022f3742d0 http://git.overlays.gentoo.org/gitweb/?p=proj/openrc.git;a=commit;h=49e99a739361b977b0841c602f10fc9895285197 |