Subject: Re: [vserver] gentoo and baselayout 2
From: "Gregory M. Turner" <gmturner007@ameritech.net>
Date: Mon, 27 Aug 2007 14:03:51 -0700

On Monday 27 August 2007, Ed W wrote:
> Hi
>
> > /etc/init.d/net.lo -> ../../lib/rcscripts/sh/net.sh
>
> Yes, I have this disabled and not starting up
>
> Hmm, I thought that the file you list below is something that I created
> manually in my own setup?  Is it just coincidence or is something like
> this now created as part of the vserver setup?  I can't find a package
> that it belongs to?  Certainly adding this fixes the issue, but it's a
> bit of a hack that I'm sure I manually created... (will have to setup a
> new server now to see if it's added automatically... ?)
>
> > /etc/init.d/net.vserver:
>
> Thanks for the notes anyway
>
> Ed W

Here is what seems to be working on mine.

diff -ur ./etc/conf.d/clock /etc/conf.d/clock
--- ./etc/conf.d/clock	2007-08-27 20:46:32.000000000 +0000
+++ /etc/conf.d/clock	2007-08-24 16:07:23.000000000 +0000
@@ -4,7 +4,7 @@
 # Greenwich Mean Time).  If your clock is set to the local time, then 
 # set CLOCK to "local".  Note that if you dual boot with Windows, then 
 # you should set it to "local".
-CLOCK="UTC"
+CLOCK="local"
 
 # If you want to set the Hardware Clock to the current System Time 
 # during shutdown, then say "yes" here.
diff -ur ./etc/conf.d/hostname /etc/conf.d/hostname
--- ./etc/conf.d/hostname	2007-08-27 20:46:32.000000000 +0000
+++ /etc/conf.d/hostname	2007-08-24 16:05:56.000000000 +0000
@@ -1,2 +1,4 @@
+# /etc/conf.d/hostname
+
 # Set to the hostname of this machine
-HOSTNAME="localhost"
+HOSTNAME="mill2"
diff -ur ./etc/conf.d/rc /etc/conf.d/rc
--- ./etc/conf.d/rc	2007-08-27 20:46:32.000000000 +0000
+++ /etc/conf.d/rc	2007-08-24 16:38:30.000000000 +0000
@@ -26,7 +26,7 @@
 # both will be started, but services that depend on 'net' will work if either
 # one comes up. With RC_DEPEND_STRICT="yes" we would require them both to
 # come up.
-RC_DEPEND_STRICT="yes"
+RC_STRICT_DEPEND="no"
 
 # Do we allow services to be hotplugged? If not, set to RC_HOTPLUG="no"
 # NOTE: This does not affect anything hotplug/udev/devd related, just the
@@ -50,6 +50,14 @@
 # This allows net.wlan and any service not matching net.* to be plugged.
 RC_PLUG_SERVICES=""
 
+# RC_USE_CONFIG_PROFILE allows you to have different /etc/conf.d files 
+# based on your runlevel - if a conf.d file for your profile does not exist
+# then we try and use the default one.
+# To enable runlevel selection at boot, append "softlevel=foobar" to your
+# kernel line to change to the foobar runlevel.  Here we would search for
+# /etc/conf.d/<service>.foobar config files before trying to use the default
+# /etc/conf.d/<service>.
+RC_USE_CONFIG_PROFILE="yes"
 # Define network fstypes. Below is the default.
 #RC_NET_FS_LIST="afs cifs coda davfs fuse gfs ncpfs nfs nfs4 ocfs2 shfs 
smbfs"
 
--
mill2 vanilla # rc-config list |egrep 'boot|default'
  bootmisc                  boot
  checkfs                   boot
  checkroot                 boot
  hostname                  boot
  local                     default
  localmount                boot
  rmnologin                 boot
  syslog-ng                 default
  urandom                   boot
  vixie-cron                default

Hmm, not sure of any of the above settings "made the difference"... IIRC, it 
didn't "just work" out of the box, and it certainly works now.   I can do a 
more thorough analysis if the above doesn't help.

-- 
gmt