Changed some of the rc-update code so it should work with baselayout-2, also. This...
authorChris Gianelloni <wolf31o2@gentoo.org>
Fri, 8 Feb 2008 19:10:52 +0000 (19:10 +0000)
committerChris Gianelloni <wolf31o2@gentoo.org>
Fri, 8 Feb 2008 19:10:52 +0000 (19:10 +0000)
git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/catalyst/trunk@1290 d1e1f19c-881f-0410-ab34-b69fee027534

ChangeLog
catalyst
targets/support/kmerge.sh
targets/support/rc-update.sh

index a769daf2eec13c4abf22f2261c3566e4b74a124d..145a08dba8ba603dc3461b6322d6075e2608870b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,11 @@
 # Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
 # $Id: $
 
+  08 Feb 2008; Chris Gianelloni <wolf31o2@gentoo.org> catalyst,
+  targets/support/kmerge.sh, targets/support/rc-update.sh:
+  Changed some of the rc-update code so it should work with baselayout-2,
+  also. This is 2.0.6_pre2 for testing.
+
   08 Feb 2008; Chris Gianelloni <wolf31o2@gentoo.org> AUTHORS, catalyst,
   files/catalyst.conf, modules/catalyst_support.py,
   modules/generic_stage_target.py, modules/grp_target.py,
index 522713e073f86cbeaf95bd5887533effd1898535..cea85ccb829483fd3dcc4ad77bf4f63dd7865a55 100755 (executable)
--- a/catalyst
+++ b/catalyst
@@ -1,7 +1,6 @@
 #!/usr/bin/python -OO
 
 # Maintained in full by:
-# Eric Edgar <rocket@gentoo.org>
 # Andrew Gaffney <agaffney@gentoo.org>
 # Chris Gianelloni <wolf31o2@gentoo.org>
 
@@ -9,7 +8,7 @@ import os,sys,imp,string,getopt
 import pdb
 
 __maintainer__="Chris Gianelloni <wolf31o2@gentoo.org>"
-__version__="2.0.6_pre1"
+__version__="2.0.6_pre2"
 
 conf_values={}
 
index 254fe7a341721faa3546123e56acf547ede836ff..128a85a2d5004298f24b79325151ac16af4cc0d9 100755 (executable)
@@ -21,7 +21,7 @@ setup_gk_args() {
        # extra genkernel options that we have to test for
        if [ -n "${clst_KERNCACHE}" ]
        then
-               GK_ARGS="${GK_ARGS}  --kerncache=/tmp/kerncache/${clst_kname}-kerncache-${clst_version_stamp}.tar.bz2"
+               GK_ARGS="${GK_ARGS} --kerncache=/tmp/kerncache/${clst_kname}-kerncache-${clst_version_stamp}.tar.bz2"
        fi
 
        if [ "${clst_splash_type}" == "bootsplash" -a -n "${clst_splash_theme}" ]
index 2c837882eee6dc32fcc8766f4ea1a80e4c7f5ed8..fdac323c5f994177bb2caae566f0d607b6ec6653 100644 (file)
@@ -1,5 +1,13 @@
 #!/bin/bash
 
+if portageq has_version / >=sys-apps/baselayout-2*
+then
+       # We need to add a few here for baselayout-2
+       [[ -e /etc/init.d/device-mapper ]] && rc-update add device-mapper boot
+       [[ -e /etc/init.d/lvm ]] && rc-update add lvm boot
+       [[ -e /etc/init.d/dmcrypt ]] && rc-update add dmcrypt boot
+fi
+
 if [ "${clst_spec_prefix}" == "livecd" ]
 then
        # default programs that we always want to start
@@ -8,9 +16,8 @@ then
        rc-update del keymaps
        rc-update del serial
        rc-update del consolefont
+       # We need to add this one, unconditionally
        rc-update add autoconfig default
-       rc-update add modules boot
-       rc-update add pwgen default
        [[ -e /etc/init.d/bootsplash ]] && rc-update add bootsplash default
        [[ -e /etc/init.d/splash ]] && rc-update add splash default
        [[ -e /etc/init.d/fbcondecor ]] && rc-update add fbcondecor default