Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
OpenRC support thread, 2d Edition
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8, 9, 10  Next  
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
MoonWalker
Guru
Guru


Joined: 04 Jul 2002
Posts: 510

PostPosted: Sat Oct 31, 2009 12:12 am    Post subject: Reply with quote

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


Joined: 25 Feb 2006
Posts: 1139
Location: Sofia/Bulgaria

PostPosted: Tue Nov 10, 2009 6:56 pm    Post subject: Reply with quote

sys-apps/openrc-0.5.2-r2 is in portage :wink:
_________________
"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
View user's profile Send private message
VinzC
Watchman
Watchman


Joined: 17 Apr 2004
Posts: 5098
Location: Dark side of the mood

PostPosted: Wed Nov 18, 2009 3:09 pm    Post subject: unmount /lib64/rc/init.d failed Reply with quote

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
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Wed Nov 18, 2009 10:50 pm    Post subject: Reply with quote

Looks like a possible multilib error - check how /lib, /lib64, /lib32 are defined and what the OpenRC ebuild thinks they should be.
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
Skotlex
Guru
Guru


Joined: 13 Mar 2004
Posts: 306

PostPosted: Sat Nov 28, 2009 11:44 am    Post subject: Reply with quote

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
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Sat Nov 28, 2009 1:00 pm    Post subject: Reply with quote

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


Joined: 23 Jul 2007
Posts: 563
Location: China

PostPosted: Wed Dec 02, 2009 2:18 pm    Post subject: Reply with quote

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


Joined: 06 Dec 2002
Posts: 552
Location: Venice FL

PostPosted: Wed Dec 02, 2009 6:43 pm    Post subject: Reply with quote

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


Joined: 15 Jul 2005
Posts: 1931

PostPosted: Thu Dec 03, 2009 4:11 pm    Post subject: Reply with quote

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? :P
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Fri Dec 04, 2009 10:38 am    Post subject: Reply with quote

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
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Fri Dec 04, 2009 10:38 am    Post subject: Reply with quote

thumper wrote:
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.


/etc/conf.d/network should have examples for what you need.
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Fri Dec 04, 2009 10:39 am    Post subject: Reply with quote

AM088 wrote:
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? :P


email zzam@gentoo.org about it. cc roy@marples.name on the convo as well. I don't think he reads these forums and he's the udev maintainer.
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
d2_racing
Bodhisattva
Bodhisattva


Joined: 25 Apr 2005
Posts: 13047
Location: Ste-Foy,Canada

PostPosted: Fri Dec 04, 2009 1:05 pm    Post subject: Reply with quote

In fact, we that new thing, maybe we can save 2-3 sec for sure :P
Back to top
View user's profile Send private message
HelAu
n00b
n00b


Joined: 09 Feb 2004
Posts: 59

PostPosted: Fri Dec 04, 2009 3:01 pm    Post subject: Reply with quote

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


Joined: 06 Dec 2002
Posts: 552
Location: Venice FL

PostPosted: Fri Dec 04, 2009 5:16 pm    Post subject: Reply with quote

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
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Fri Dec 04, 2009 6:18 pm    Post subject: Reply with quote

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


Joined: 09 Feb 2004
Posts: 59

PostPosted: Fri Dec 04, 2009 7:56 pm    Post subject: Reply with quote

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
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Fri Dec 04, 2009 8:16 pm    Post subject: Reply with quote

Remove routes_eth0 variable
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
thumper
Guru
Guru


Joined: 06 Dec 2002
Posts: 552
Location: Venice FL

PostPosted: Fri Dec 04, 2009 8:23 pm    Post subject: Reply with quote

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
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Fri Dec 04, 2009 8:25 pm    Post subject: Reply with quote

thumper wrote:
UberLord wrote:
Remove routes_eth0 variable


And don't you need this as well for the new way to work?

Code:
defaultroute="192.168.178.1"


George


He has a conflict between dhcpcd and static routes. A bug was fixed in the latest OpenRC regarding route metric, which causes his invalid config to now error.
Basically, either use the DHCP given info OR use static. Don't attempt both :)
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
HelAu
n00b
n00b


Joined: 09 Feb 2004
Posts: 59

PostPosted: Fri Dec 04, 2009 8:31 pm    Post subject: Reply with quote

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
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Fri Dec 04, 2009 8:33 pm    Post subject: Reply with quote

Well, you now have a new problem - you're using init.d/network AND net.eth0 (and probably net.eth0 as well)
You want to use either init.d/network + init.d/dhcpcd OR init.d/net.lo + init.d/net.eth0
Don't mix them both :)
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
HelAu
n00b
n00b


Joined: 09 Feb 2004
Posts: 59

PostPosted: Fri Dec 04, 2009 8:38 pm    Post subject: Reply with quote

Ouch - you're right ;)
Where is a documentation for how to setup networking correctly with openrc ?
Back to top
View user's profile Send private message
thumper
Guru
Guru


Joined: 06 Dec 2002
Posts: 552
Location: Venice FL

PostPosted: Fri Dec 04, 2009 9:14 pm    Post subject: Reply with quote

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
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Fri Dec 04, 2009 9:14 pm    Post subject: Reply with quote

For the new style, currently none.
Not because I'm lazy, but because all my networking needs are handled by dhcpcd-5.
dhcpcd-5 has excellent documentation

I also run a server as my home router/gateway. Admittedly it runs NetBSD, but the new style network scripts are inspired by it's simple setup.
This is all documented in conf.d/network and conf.d/staticroute.
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8, 9, 10  Next
Page 4 of 10

 
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