Update of /cvs/debian-boot/debian-installer/rootskel/src/usr/lib/prebaseconfig.d
In directory gluck:/tmp/cvs-serv1319/src/usr/lib/prebaseconfig.d

Modified Files:
        Makefile 
Added Files:
        50register-module 
Log Message:
   * Add a register-module command, similar to apt-install, which queues
     modules for entry into /target/etc/modules and /target/etc/modutils/local.
     Does not yet handle 2.6 modutils. Should only be used for modules
     that discover does not find, or that have special parameters.
   * Add debian-installer/framebuffer and only enable frame buffer if it is
     true.
   * Add a S25env2debconf in debian-installer.d, that finds environment
     variables in the form foo/bar=baz, and uses these special ones to set
     debconf values in the db. This allows booting with any d-i debconf
     values on the command line, to override *anything*. For example --
     boot: debian-installer/framebuffer=false
   * Fixed debconf-get to not output value on stderr, and not clear screen
     either. But it is insanely gross and expensive now, and should be
     moved to cdebconf and rewritten.

--- NEW FILE: 50register-module ---
#!/bin/sh
# register queued modules
QUEUE=/var/lib/register-module/queue
MODFILE=/target/etc/modules
MODCONFILE=/target/etc/modutils/local

if [ -e $QUEUE ]; then
        touch $MODFILE

        IFS="
"
        for line in $(cat $QUEUE); do
                module=`echo "$line" | cut -d\  -f1`
                echo $module >> $MODFILE
                param=`echo $line | cut -d\  -f2`
                if [ "$param" != "" ]; then
                        if [ ! -e $MODCONFILE ]; then
                                echo "# Local modules settings." > $MODCONFILE
                                echo "# Created by the Debian installer" >> $MODCONFILE
                        fi
                        echo "options $line" >> $MODCONFILE
                fi
        done
        rm $QUEUE

        if [ -e $MODCONFILE ]; then
                chroot /target update-modules < /dev/null 2>&1 | logger 
"register-modules"
        fi
fi

Index: Makefile
===================================================================
RCS file: 
/cvs/debian-boot/debian-installer/rootskel/src/usr/lib/prebaseconfig.d/Makefile,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- Makefile    3 May 2003 14:16:57 -0000       1.1
+++ Makefile    8 Dec 2003 21:52:31 -0000       1.2
@@ -1,3 +1,4 @@
 dir = usr/lib/prebaseconfig.d
+files_exec = 50register-module
 
 include ../../../Makefile.inc


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to