Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
openrc support thread
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3 ... 12, 13, 14 ... 31, 32, 33  Next  
This topic is locked: you cannot edit posts or make replies.    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Sat May 17, 2008 12:52 am    Post subject: Reply with quote

kernelOfTruth wrote:
I have some special characters in my password which can't be typed in with english layout + german keyboard


As others pointed out, this is possible through adding rc_need="keymaps" to conf.d/dm-crypt.
_________________
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
ali3nx
l33t
l33t


Joined: 21 Sep 2003
Posts: 722
Location: Winnipeg, Canada

PostPosted: Sat May 17, 2008 12:54 am    Post subject: Reply with quote

I've been running lvm2 rootfs on amd64 and recently updated to openrc and bl-2. after fixing an lvm2 utils bug i was going about trying to update my initrd using the lvm2create_initrd script from redhat's cvs but the script doesn't work with baselayout 2 and openrc.

Code:
midas ~ # ./lvm2create_initrd -c /etc/lvm/lvm.conf
lvm2create_initrd -- make LVM initial ram disk /boot/initrd-lvm2-2.6.25-gentoo-r3.gz

lvm2create_initrd -- finding required shared libraries
lvm2create_initrd -- calculating initrd filesystem parameters
lvm2create_initrd -- calculating loopback file size
du: cannot access `(0x00007fff3a9fe000)': No such file or directory
du: cannot access `(0x00007fffc6dfe000)': No such file or directory
lvm2create_initrd -- making loopback file (6244 kB)
lvm2create_initrd -- making ram disk filesystem
lvm2create_initrd -- mounting ram disk filesystem
lvm2create_initrd -- adding required /dev files
./lvm2create_initrd: line 374: /dev/MAKEDEV: No such file or directory
lvm2create_initrd -- ERROR adding /dev files


code from the script.
Code:
# Add some /dev files. We have to handle different types of MAKEDEV invocations
# here, so this is rather messy.
RETCODE=0
echo "$cmd -- adding required /dev files"
verbose "BASICDEVICES: `echo $BASICDEVICES`"
verbose "BLOCKDEVICES: `echo $BLOCKDEVICES`"
[ "$VERBOSE" ] && OPT_Q="-v" || OPT_Q=""
case "$MAKEDEV" in
debian)
    (cd $TMPMNT/dev; /dev/MAKEDEV $OPT_Q $BASICDEVICES $BLOCKDEVICES)
    RETCODE=$?
    ;;
redhat)
    (cd $TMPMNT/dev; /dev/MAKEDEV $OPT_Q -d $TMPMNT/dev -m 2)
    RETCODE=$?
    ;;
gentoo)
    (cd $TMPMNT/dev; /usr/sbin/MAKEDEV $OPT_Q $BASICDEVICES $BLOCKDEVICES)
    RETCODE=$?
    ;;
*)
    echo "$cmd -- ERROR: $MAKEDEV is not a known MAKEDEV style."
    RETCODE=1
    ;;
esac
 
 
if [ $RETCODE -ne 0 ]; then
   echo "$cmd -- ERROR adding /dev files"
   cleanup 1
fi


I could create the initrd with baselayout 1 and i understand that a lot of important devices are moving to sysfs. Anyone have suggestions for updating the lvm2create_initrd script to work with baselayout 2 and openrc? openrc and baselayout 2 do work with lvm2 rootfs but the initrd needs to function as well.
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 May 17, 2008 12:55 am    Post subject: Reply with quote

AM088 wrote:
Could anyone tell me why root now gets mounted twice?
mtab shows:
/etc/mtab:
rootfs / rootfs rw 0 0
/dev/root / ext3 rw,noatime,errors=continue,data=ordered 0 0


What's rootfs?


rootfs is where / was mounted for the kernel to boot
/dev/root is where / *may* have been relocated later.

Most distros filter out rootfs. Gentoo used to as well, but now we cannot as some users like to overmount / with tmpfs (which does require a kernel patch) and requires this is not filtered out.
_________________
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: Sat May 17, 2008 12:59 am    Post subject: Reply with quote

ali3nx wrote:
Anyone have suggestions for updating the lvm2create_initrd script to work with baselayout 2 and openrc? openrc and baselayout 2 do work with lvm2 rootfs but the initrd needs to function as well.


The defalt lvm2 stuff works with OpenRC on my laptop. It works for others too.
However, you're also not the first to say it's not working, but as yet no-one can tell us why.
I'm also not that knowledgable about lvm myself so can't really help too much :/
_________________
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
ali3nx
l33t
l33t


Joined: 21 Sep 2003
Posts: 722
Location: Winnipeg, Canada

PostPosted: Sat May 17, 2008 1:32 am    Post subject: Reply with quote

It may have been a premature assumption that baselayout 2 did not require makedev without considering how udev would function with the new rc system. I can only assume that the bl-2 and openrc system or a recent udev build depreciated MAKEDEV. Since the makeinitrd script uses makedev to populate /dev when creating the ramdisk what does udev now use for this task?
Back to top
View user's profile Send private message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 6111
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Sat May 17, 2008 8:41 am    Post subject: Reply with quote

UberLord wrote:
kernelOfTruth wrote:
I have some special characters in my password which can't be typed in with english layout + german keyboard


As others pointed out, this is possible through adding rc_need="keymaps" to conf.d/dm-crypt.


ok, thanks guys,

I'll give this a try :)
_________________
https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.9.0
https://github.com/kernelOfTruth/pulseaudio-equalizer-ladspa

Hardcore Gentoo Linux user since 2004 :D
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 May 17, 2008 9:30 am    Post subject: Reply with quote

ali3nx wrote:
It may have been a premature assumption that baselayout 2 did not require makedev without considering how udev would function with the new rc system. I can only assume that the bl-2 and openrc system or a recent udev build depreciated MAKEDEV. Since the makeinitrd script uses makedev to populate /dev when creating the ramdisk what does udev now use for this task?


udev has always used it's own special blend of voodoo ;)
_________________
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
ocin
Guru
Guru


Joined: 01 Jan 2006
Posts: 500

PostPosted: Sun May 18, 2008 8:41 pm    Post subject: Reply with quote

Since my last reboot the "* Caching service dependcies ..." thing is extremely slow. It appears before every service, sometimes twice or more it takes about one minute to boot where it took some seconds before. I neither know why this problem is there nor how to fix it.
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Mon May 19, 2008 8:41 am    Post subject: Reply with quote

You could search this thread and see that something in /etc has an mtime in the future which causes the deptree to rebuild as it's always out of date.
_________________
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
ocin
Guru
Guru


Joined: 01 Jan 2006
Posts: 500

PostPosted: Tue May 20, 2008 12:33 pm    Post subject: Reply with quote

fixed. thanks.
Back to top
View user's profile Send private message
AVK
n00b
n00b


Joined: 29 Nov 2006
Posts: 3

PostPosted: Wed May 21, 2008 8:45 am    Post subject: Reply with quote

After upgrade to openrc I am not sure how to configure vpn.

Here is sample from conf.d/net.example:

modules="iproute2 openvpn wpa_supplicant"
tuntap_tun0="tun"
config_tun0="192.168.1.1 peer 192.168.1.2"

and when I start it, the result is:
avk init.d # /etc/init.d/net.tun0 restart
* Bringing down interface tun0
* Destroying Tun/Tap interface tun0 ... [ ok ]
* Bringing up interface tun0
* Creating Tun/Tap interface tun0 ... [ ok ]
* 192.168.1.1 ... [ ok ]
* pointopoint ...
* nothing provides `peer' [ !! ]
* 192.168.1.2 ... [ ok ]
* Running postup ...
avk init.d #


looks like the syntax for 'peer' is gone, same about this syntax:
config_tun0="192.168.1.1 pointopoint 192.168.1.2"
Back to top
View user's profile Send private message
Kenji Miyamoto
Veteran
Veteran


Joined: 28 May 2005
Posts: 1452
Location: Looking over your shoulder.

PostPosted: Sat May 24, 2008 4:35 am    Post subject: Reply with quote

I just recently upgraded to Baselayout 2 and OpenRC, and it seems to have broken things even though I ran etc-update and dispatch-conf. When I boot, it mounts the /dev filesystems, goes to wait for uevents, then directly enters runlevel 3, and then goes directly to login. This is without mounting the filesystem read-write or anything.

The weird part is this:
Code:
# rc-update show               
                  gpm |      default                 
                  xdm |      default                 
                 dbus |      default                 
                 fsck | boot                         
                 hald |      default                 
                 mtab | boot                         
                 root | boot                         
                 sshd |      default                 
                 swap | boot                         
                acpid |      default                 
                cupsd |      default                 
                local |      default nonetwork       
              dnsmasq |      default                 
           vixie-cron |      default                 
              sensord |      default                 
             iptables |      default                 
            syslog-ng | boot                         
           consolekit |      default                 
           localmount | boot                         
            pydoc-2.5 |      default                 
          consolefont | boot                         
              modules | boot                         
               esound |      default                 
             hostname | boot                         
               net.lo | boot                         
             net.eth0 |      default                 
               procfs | boot                         
               sysctl | boot                         
              urandom | boot                         
             cpufreqd |      default                 
         termencoding | boot                         
             timidity |      default                 
              hwclock | boot                         
             bootmisc | boot                         
        device-mapper | boot                         
           irqbalance | boot                         
            alsasound | boot
I had to run this in the login ZSH in order to finish setting up the services, and it worked:
Code:
# for i in `rc-update show | awk -F'|' '{print $1}'`; /etc/init.d/$i start
What went wrong here? I've even tried removing and re-adding the services above to no avail.
_________________
[ Kawa-kun, new and improved!! ]

Alex Libman seems to be more of an anarchist than a libertarian.
Back to top
View user's profile Send private message
golding
Apprentice
Apprentice


Joined: 07 Jun 2005
Posts: 232
Location: Adelaide / South Australia

PostPosted: Sat May 24, 2008 5:12 am    Post subject: Reply with quote

Kenji Miyamoto wrote:
I just recently upgraded to Baselayout 2 and OpenRC, and it seems to have broken things even though I ran etc-update and dispatch-conf. When I boot, it mounts the /dev filesystems, goes to wait for uevents, then directly enters runlevel 3, and then goes directly to login. This is without mounting the filesystem read-write or anything.
//snip//What went wrong here? I've even tried removing and re-adding the services above to no avail.


Have you checked whether rc_parallel="YES" or "NO" in /etc/rc.conf?
_________________
Regards, Robert

..... Some people can tell what time it is by looking at the sun, but I have never been able to make out the numbers.
Back to top
View user's profile Send private message
Kenji Miyamoto
Veteran
Veteran


Joined: 28 May 2005
Posts: 1452
Location: Looking over your shoulder.

PostPosted: Sat May 24, 2008 5:27 am    Post subject: Reply with quote

Both /etc/conf.d/rc and /etc/rc.conf have it set to NO.

What's really weird is that if I use that Awk script to start the services, they aren't stopped at boot. It simply exits the shell then goes to "remounting /".
_________________
[ Kawa-kun, new and improved!! ]

Alex Libman seems to be more of an anarchist than a libertarian.
Back to top
View user's profile Send private message
golding
Apprentice
Apprentice


Joined: 07 Jun 2005
Posts: 232
Location: Adelaide / South Australia

PostPosted: Sat May 24, 2008 8:27 am    Post subject: Reply with quote

Kenji Miyamoto wrote:
Both /etc/conf.d/rc and /etc/rc.conf have it set to NO.

You should delete the /etc/conf.d/rc after checking that you have any extra lines you may want from it transferred to /etc/rc.conf.

Kenji Miyamoto wrote:
What's really weird is that if I use that Awk script to start the services, they aren't stopped at boot. It simply exits the shell then goes to "remounting /".

It has to be in the settings somewhere, I would check, and then re-check, all the settings in any boot 'rc' files, then make sure there is nothing left over from the old boot system causing this due to incompatibility issues.

You did follow the Baselayout and OpenRC Migration Guide, didn't you?
_________________
Regards, Robert

..... Some people can tell what time it is by looking at the sun, but I have never been able to make out the numbers.
Back to top
View user's profile Send private message
Kenji Miyamoto
Veteran
Veteran


Joined: 28 May 2005
Posts: 1452
Location: Looking over your shoulder.

PostPosted: Sat May 24, 2008 1:30 pm    Post subject: Reply with quote

Yes, I did follow that guide. I've checked, and all of the settings from /etc/conf.d/rc were migrated correctly.

How would I know what to look for as far as old files causing trouble?
_________________
[ Kawa-kun, new and improved!! ]

Alex Libman seems to be more of an anarchist than a libertarian.
Back to top
View user's profile Send private message
Lawless
l33t
l33t


Joined: 03 Nov 2003
Posts: 638
Location: Germany

PostPosted: Sat May 24, 2008 5:42 pm    Post subject: Reply with quote

Today I've updated to openrc.
The first thing I noticed - I am using a read-only root setup however the "ro" in fstab seems to be ignored because / is now mounted rw after boot. I have to manually remount it as ro...
Bug? Change in configuration?
_________________
Kernel panic: I have no root and I want to scream
Back to top
View user's profile Send private message
acarstoiu
Apprentice
Apprentice


Joined: 20 Oct 2004
Posts: 192

PostPosted: Mon May 26, 2008 5:49 pm    Post subject: Reply with quote

Any idea why a dependency like "before net" is not observed when starting the firewall? The firewall starts after all net.* services are running - not very secure, is it?
Also, the firewall (Firehol in this case) starts very-very slow compared to any other service. It was significantly faster before OpenRC :(

Another weirdness is that sometimes OpenRC says at shutdown "Caching service dependencies..." and tries to stop services that were not started at all, for ages!
Back to top
View user's profile Send private message
acarstoiu
Apprentice
Apprentice


Joined: 20 Oct 2004
Posts: 192

PostPosted: Mon May 26, 2008 6:45 pm    Post subject: Reply with quote

Firehol starts considerably faster if the net.* services are constrained not to start in the boot runlevel through "coldplug" (whatever that is). But even so, the net.* services keep starting before the firewall (all of them in the default runlevel) 8O

I've tried all this with "rc_depend_strict" set both to YES and to NO.
Should a bug report be filed?
Back to top
View user's profile Send private message
Moofar
n00b
n00b


Joined: 07 Jan 2008
Posts: 6

PostPosted: Mon May 26, 2008 11:03 pm    Post subject: dcpcd times out when connecting via wep. Reply with quote

dcpcd times out when connecting via wep. Worked fine before. It works fine when I turn encryption off at the router. I tried connecting via Network Manager and the regular startup scripts. My /etc/conf.d/net:
modules="iwconfig"
key_g2="s:wepsux"
I am using the iwl4965 wireless driver via kernel 2.6.24-tuxonice-r3.
I upgraded a lot of packages, I tried to see if it was another packages fault. I downgraded to stable dhcpcd, didn't upgrade kernel and symlinked the kernel sources to the same as the kernel I am using. The only other package I can think of to check is the iwl4965-ucode & dhcp which were not upgraded.
Any suggestions?
_________________
Ian Kelling
Back to top
View user's profile Send private message
acarstoiu
Apprentice
Apprentice


Joined: 20 Oct 2004
Posts: 192

PostPosted: Tue May 27, 2008 10:46 am    Post subject: Reply with quote

You should filter out your wireless interface service in /etc/rc.conf:
Code:
rc_plug_services="!<wireless_service_name_here>"

This will prevent the service being started at boot runlevel. See if this solves the issue (provided that you have the service listed in the default runlevel).
Back to top
View user's profile Send private message
acarstoiu
Apprentice
Apprentice


Joined: 20 Oct 2004
Posts: 192

PostPosted: Tue May 27, 2008 12:53 pm    Post subject: Reply with quote

Quote:
Another weirdness is that sometimes OpenRC says at shutdown "Caching service dependencies..." and tries to stop services that were not started at all, for ages!

Mistery solved: the process that rebuilds dependencies runs all config() sections of all services. Why is that?

Regarding the OpenRC's mistake to start the firewall after the network interfaces, how can I investigate the cause? The firewall service has among its dependencies "before net", "rc_parallel" is set to NO, "rc_depend_strict" is set to YES, net.lo is started in the boot runlevel, while net.eth* are started in the default runlevel, together with the firewall.

Help, Roy... :cry:
Back to top
View user's profile Send private message
m.s.w
Apprentice
Apprentice


Joined: 19 Sep 2004
Posts: 190
Location: Kraków, Poland

PostPosted: Tue May 27, 2008 8:46 pm    Post subject: Reply with quote

I just migrated to openrc. I did dispatch-conf, updated config files, including /etc/conf.d/net Now I have two problems.

1. /etc/init.d/net.eth1 which is my internet connection is starting up and everything seems to be OK (no errors). It is set to config_eth1="dhcp". After boot my resolv.conf is empty. I need to manualy restart net.eth1 and after that I have resolv.conf filled with proper dns servers and internet connection is working. What is going on??

2. My system was set to UTF (my locales are pl_PL.UTF8). Before openrc I had everything working ok. Now, the problem is that I can see letters specific to my language (ąćę) in terminal, but I can't write them. keyboard layout is pl. rc.conf UNICODE="YES". Again - what should I doublecheck?

Best Regards,
m.s.w
_________________
Mark Twain said it best:
"If you have to swallow a frog, don't stare at it too long!"
Back to top
View user's profile Send private message
acarstoiu
Apprentice
Apprentice


Joined: 20 Oct 2004
Posts: 192

PostPosted: Wed May 28, 2008 8:21 am    Post subject: Reply with quote

m.s.w wrote:

1. /etc/init.d/net.eth1 which is my internet connection is starting up and everything seems to be OK (no errors). It is set to config_eth1="dhcp". After boot my resolv.conf is empty. I need to manualy restart net.eth1 and after that I have resolv.conf filled with proper dns servers and internet connection is working. What is going on??

Try this in /etc/rc.conf:
Code:
rc_plug_services="!net.eth1"

or more general
Code:
rc_plug_services="!net.*"


I very much suspect there's something wrong with "coldplug" initiated services in terms of needed depndencies. Before baselayout-2 I never had the network interfaces started at boot runlevel.

Is there any real explanatory document on OpenRC and its configuration ? Roy himself admitted here that the comments in rc.conf are far from the actual subtleties :?
I also strongly recommend the Gentoo developers to think twice before unmasking beta versions of critical packages such as baselayout. I'm using ~arch packages for years now and I don't remember anything more problematic than OpenRC.
Lucky me, I took advantage of the unlucky experience of people who upgraded before me.
Back to top
View user's profile Send private message
m.s.w
Apprentice
Apprentice


Joined: 19 Sep 2004
Posts: 190
Location: Kraków, Poland

PostPosted: Wed May 28, 2008 1:31 pm    Post subject: Reply with quote

THank you, I'll try it when I have access to my computer. Still it is strange becouse I have coldplug=NO (switched off).

Another question is how to give up on openrc? Will it be enough to emerge -C openrc && emerge previous_version_of_baselayout, and then restore config files?

Best Regards
m.s.w
_________________
Mark Twain said it best:
"If you have to swallow a frog, don't stare at it too long!"
Back to top
View user's profile Send private message
Display posts from previous:   
This topic is locked: you cannot edit posts or make replies.    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Goto page Previous  1, 2, 3 ... 12, 13, 14 ... 31, 32, 33  Next
Page 13 of 33

 
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