View previous topic :: View next topic |
Author |
Message |
MoonWalker Guru
Joined: 04 Jul 2002 Posts: 511
|
Posted: Sat Oct 31, 2009 12:12 am Post subject: |
|
|
Also rather then hijacking this treed I just like to ask here for attention regarding a problem I strongly suspect is related to openrc-0.5.2/0.5.2-r1
https://forums.gentoo.org/viewtopic-p-6036703.html
Thanks _________________ /Joakim
Living on earth is expensive, but it includes a free trip around the sun
every year. |
|
Back to top |
|
|
Kollin Veteran
Joined: 25 Feb 2006 Posts: 1139 Location: Sofia/Bulgaria
|
Posted: Tue Nov 10, 2009 6:56 pm Post subject: |
|
|
sys-apps/openrc-0.5.2-r2 is in portage _________________ "Dear Enemy: may the Lord hate you and all your kind, may you be turned orange in hue, and may your head fall off at an awkward moment."
"Linux is like a wigwam - no windows, no gates, apache inside..." |
|
Back to top |
|
|
VinzC Watchman
Joined: 17 Apr 2004 Posts: 5098 Location: Dark side of the mood
|
Posted: Wed Nov 18, 2009 3:09 pm Post subject: unmount /lib64/rc/init.d failed |
|
|
Hi all.
On one server machine I recently installed I get the following error message (from memory) when the server reboots:
Code: | *Unmounting filsystems...
* /lib64/rc/init.d failed because we are using /lib64/rc/init.d |
Does anybody know what causes this? The only difference I can think of compared to other machines I've already installed is I'm using an initrd to mount the root filesystem from LVM. I've used genkernel initramfs to generate the initrd.
Thanks in advance for any hint/suggestion. _________________ Gentoo addict: tomorrow I quit, I promise!... Just one more emerge...
1739! |
|
Back to top |
|
|
UberLord Retired Dev
Joined: 18 Sep 2003 Posts: 6835 Location: Blighty
|
|
Back to top |
|
|
Skotlex Guru
Joined: 13 Mar 2004 Posts: 309
|
Posted: Sat Nov 28, 2009 11:44 am Post subject: |
|
|
I have a question regarding /etc/init.d/localmount, why does it uses $net_fs_list and where is this list built?
I noticed that my reiser4 partitions don't get mounted after a crash (aka. hibernate-gone-wrong), and I really would want to fix that because it's annoying logging in as root just to mount filesystems.
I think the source of the problem may lay in the fact that, within /etc/fstab, the partitions are called "reiser4," while the correct syntax for mount -at to make the partitions be mounted is "mount -at reiserfs"
However, since I don't know how the net_fs_list variable is built, I can't look for a way to fix it myself. Could it even be fixed by adding something to /etc/conf.d/localmount?
using baselayout 2.0.1 |
|
Back to top |
|
|
UberLord Retired Dev
Joined: 18 Sep 2003 Posts: 6835 Location: Blighty
|
Posted: Sat Nov 28, 2009 1:00 pm Post subject: |
|
|
Skotlex wrote: | I have a question regarding /etc/init.d/localmount, why does it uses $net_fs_list and where is this list built? |
So that netmount can mount networks
It's maintain in /etc/rc.conf
Quote: | I noticed that my reiser4 partitions don't get mounted after a crash (aka. hibernate-gone-wrong), and I really would want to fix that because it's annoying logging in as root just to mount filesystems.
I think the source of the problem may lay in the fact that, within /etc/fstab, the partitions are called "reiser4," while the correct syntax for mount -at to make the partitions be mounted is "mount -at reiserfs"
However, since I don't know how the net_fs_list variable is built, I can't look for a way to fix it myself. Could it even be fixed by adding something to /etc/conf.d/localmount?
using baselayout 2.0.1 |
Isn't reiser4 supposed to fix itself? Either they replay at mount or fsck fixes them.
The chances of me running reiser4 are nothing, so you'll have to help me here.
How do you manually fix this? _________________ Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool |
|
Back to top |
|
|
MalleRIM Guru
Joined: 23 Jul 2007 Posts: 563 Location: China
|
Posted: Wed Dec 02, 2009 2:18 pm Post subject: |
|
|
Is there a way to use RC_PARALLEL_STARTUP="yes" but to stop at specific points and do not try to start anything until a certain init script is executed?
I want to use RC_PARALLEL_STARTUP but I can't type my LUKS password if I do... So I want the init process to wait until dmcrypt is started and then keep going. |
|
Back to top |
|
|
thumper Guru
Joined: 06 Dec 2002 Posts: 554 Location: Venice FL
|
Posted: Wed Dec 02, 2009 6:43 pm Post subject: |
|
|
So it seems I'm using this: sys-apps/openrc-0.5.2-r2
Setting up the /etc/init.d/network was trivial for my previous needs, that being static ip.
However I'm not having much luck finding clear documentation on bridging and the tun device, and more specifically with regard to qemu-kvm usage that defines examples using the new network way of doing things.
So are any of you nice folks aware of such documentation and would be willing to provide a url pointing to it.
Thanks in advance.
George |
|
Back to top |
|
|
Etal Veteran
Joined: 15 Jul 2005 Posts: 1932
|
Posted: Thu Dec 03, 2009 4:11 pm Post subject: |
|
|
With the new devtmpfs feature in Linux 2.6.32, the kernel to populates and mounts /dev with most device nodes - meaning udev is not needed so early in the boot. How can this be taken advantage of with OpenRC, so that we can get a 2-second faster bootup? |
|
Back to top |
|
|
UberLord Retired Dev
Joined: 18 Sep 2003 Posts: 6835 Location: Blighty
|
Posted: Fri Dec 04, 2009 10:38 am Post subject: |
|
|
MalleRIM wrote: | Is there a way to use RC_PARALLEL_STARTUP="yes" but to stop at specific points and do not try to start anything until a certain init script is executed?
I want to use RC_PARALLEL_STARTUP but I can't type my LUKS password if I do... So I want the init process to wait until dmcrypt is started and then keep going. |
You can't do this as you could have 2 scripts contending for the keyboard.
In your situation, just disable parallel. _________________ Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool |
|
Back to top |
|
|
UberLord Retired Dev
Joined: 18 Sep 2003 Posts: 6835 Location: Blighty
|
|
Back to top |
|
|
UberLord Retired Dev
Joined: 18 Sep 2003 Posts: 6835 Location: Blighty
|
|
Back to top |
|
|
d2_racing Bodhisattva
Joined: 25 Apr 2005 Posts: 13047 Location: Ste-Foy,Canada
|
Posted: Fri Dec 04, 2009 1:05 pm Post subject: |
|
|
In fact, we that new thing, maybe we can save 2-3 sec for sure |
|
Back to top |
|
|
HelAu n00b
Joined: 09 Feb 2004 Posts: 59
|
Posted: Fri Dec 04, 2009 3:01 pm Post subject: |
|
|
Hi,
I have questions about openRC:
- What is with /etc/modprobe.conf ? Are module parameters no longer read from that file, so that /etc/conf.d/modules is the only place for that (what would make sense:)
- What about depscan.sh ? Is there a replacement available, or does openrc automagically check for updates ? |
|
Back to top |
|
|
thumper Guru
Joined: 06 Dec 2002 Posts: 554 Location: Venice FL
|
Posted: Fri Dec 04, 2009 5:16 pm Post subject: |
|
|
UberLord wrote: |
/etc/conf.d/network should have examples for what you need. |
Those examples are apparently of the older way (pre openrc-0.5), as they completely fail when used.
George |
|
Back to top |
|
|
UberLord Retired Dev
Joined: 18 Sep 2003 Posts: 6835 Location: Blighty
|
Posted: Fri Dec 04, 2009 6:18 pm Post subject: |
|
|
HelAu wrote: | - What is with /etc/modprobe.conf ? Are module parameters no longer read from that file, so that /etc/conf.d/modules is the only place for that (what would make sense:) |
modprobe.conf has never had anything to do with either OpenRC or baselayout-1 to the best of my knowledge
Quote: | - What about depscan.sh ? Is there a replacement available, or does openrc automagically check for updates ? |
OpenRC does it automagically.
You can get the same effect by running rc-update -u if you really want to though. _________________ Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool |
|
Back to top |
|
|
HelAu n00b
Joined: 09 Feb 2004 Posts: 59
|
Posted: Fri Dec 04, 2009 7:56 pm Post subject: |
|
|
Hi
Thanks for the info.
But now I have a major Problem after upgrading from baselayout-1 to openRC 0.5.3: my network is broken.
Its working fine locally (192.168.178.xxx) but I can't get outside.
Quote: | * Bringing up interface eth0
* dhcp...
* Running dhcpcd...
eth0: dhcpcd 4.0.15 starting
eth0: waiting for carrier
eth0: carrier acquired
eth0: broadcasting for a lease
eth0: offered 192.168.178.118 from 192.168.178.1
eth0: acknowledged 192.168.178.118 from 192.168.178.1
eth0: checking 192.168.178.118 is available on attached networks
eth0: leased 192.168.178.118 for 864000 seconds
[ ok ]
* received address 192.168.178.118/24
[ ok ]
* Adding routes
* default via 192.168.178.1...
[ ok ]
* Starting network
[ ok ]
* Adding static routes...
SIOCADDRT: Das Netzwerk ist nicht erreichbar
[ ok ] |
The same happens with a fixed ip address/gateway. I can ping the gateway 192.168.178.1 and its also mentioned in resolv.conf:
Quote: | # Generated by dhcpcd from eth0
# /etc/resolv.conf.head can replace this line
search fritz.box
nameserver 192.168.178.1
# /etc/resolv.conf.tail can replace this line |
The /etc/conf.d/net looks like:
Code: | fallback_route_eth0="default via 192.168.78.1"
config_eth0="dhcp"
dhcpcd_eth0="-t 10 -h vdr01"
fallback_eth0="192.168.178.118 netmask 255.255.255.0 brd 192.168.178.255"
routes_eth0="default via 192.168.178.1"
|
|
|
Back to top |
|
|
UberLord Retired Dev
Joined: 18 Sep 2003 Posts: 6835 Location: Blighty
|
|
Back to top |
|
|
thumper Guru
Joined: 06 Dec 2002 Posts: 554 Location: Venice FL
|
Posted: Fri Dec 04, 2009 8:23 pm Post subject: |
|
|
UberLord wrote: | Remove routes_eth0 variable |
And don't you need this as well for the new way to work? or not with dhcp?
Code: | defaultroute="192.168.178.1" |
George |
|
Back to top |
|
|
UberLord Retired Dev
Joined: 18 Sep 2003 Posts: 6835 Location: Blighty
|
|
Back to top |
|
|
HelAu n00b
Joined: 09 Feb 2004 Posts: 59
|
Posted: Fri Dec 04, 2009 8:31 pm Post subject: |
|
|
Hi
Setting defaultroute in /etc/conf.d/network solved the problem.
This should be mentioned in the Gentoo OpenRC Migration guide.
P.S: The network is just working with only about 10 MBit but I guess thats an sky2 module problem ...
Last edited by HelAu on Fri Dec 04, 2009 8:35 pm; edited 1 time in total |
|
Back to top |
|
|
UberLord Retired Dev
Joined: 18 Sep 2003 Posts: 6835 Location: Blighty
|
|
Back to top |
|
|
HelAu n00b
Joined: 09 Feb 2004 Posts: 59
|
Posted: Fri Dec 04, 2009 8:38 pm Post subject: |
|
|
Ouch - you're right
Where is a documentation for how to setup networking correctly with openrc ? |
|
Back to top |
|
|
thumper Guru
Joined: 06 Dec 2002 Posts: 554 Location: Venice FL
|
Posted: Fri Dec 04, 2009 9:14 pm Post subject: |
|
|
HelAu wrote: | Ouch - you're right
Where is a documentation for how to setup networking correctly with openrc ? |
Good question... I've been standing in that line for some time now...
Till some usable docs show up, I just set a simple static address, and then manually setup the rest of what I needed in it's own init script.. I got the idea from the Gentoo KVM howto, although it's outdated as well with respect to the networking config portion.
George |
|
Back to top |
|
|
UberLord Retired Dev
Joined: 18 Sep 2003 Posts: 6835 Location: Blighty
|
|
Back to top |
|
|
|