summaryrefslogtreecommitdiffstats
path: root/initramfs
diff options
context:
space:
mode:
authorOliver Tappe2006-10-29 18:37:15 +0100
committerOliver Tappe2006-10-29 18:37:15 +0100
commitd9d6f0e682a2ae1cd8142328a3ec411281f9c42d (patch)
tree9b2d7879fde18287b7d3eba07fd94407062e50f4 /initramfs
parent* added support for writing of slxconfig file and passing it (diff)
downloadcore-d9d6f0e682a2ae1cd8142328a3ec411281f9c42d.tar.gz
core-d9d6f0e682a2ae1cd8142328a3ec411281f9c42d.tar.xz
core-d9d6f0e682a2ae1cd8142328a3ec411281f9c42d.zip
* renamed -s to -T (for theme)
* reused -s for passing in the settings file * if a settings file has been specified, it is copied to .../etc/sysconfig/slxconfig (and added to the initramfs) git-svn-id: http://svn.openslx.org/svn/openslx/trunk@492 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'initramfs')
-rwxr-xr-xinitramfs/slxmkramfs22
1 files changed, 18 insertions, 4 deletions
diff --git a/initramfs/slxmkramfs b/initramfs/slxmkramfs
index cbb7541e..0796dd68 100755
--- a/initramfs/slxmkramfs
+++ b/initramfs/slxmkramfs
@@ -10,6 +10,12 @@
# (c) 2003 - 2006 - RZ Universitaet Freiburg
# (c) 2006 - OpenSLX.org Project
+# NOTE (zooey):
+# this whole file should be reimplemented in perl in order to
+# simplify the passing in of information and the logging/translation
+# functionality.
+
+
# debug level of script itself
DEBUG=1
# debug level of the initramfs (to trigger the addition of specific
@@ -78,7 +84,8 @@ usage()
echo " -n module list of client network adaptors to support"
echo " -r path to the root of the stage1 system you are preparing"
echo " ramdisk for"
- echo " -s theme (for splash)"
+ echo " -s settings-file"
+ echo " -T theme (for splash)"
echo " -d debug (add special modules to initramfs)"
echo " -D name of distribution (stage1)"
echo " -v version of distribution (stage1)"
@@ -225,7 +232,7 @@ done
#########################################################################
# End of function declaration
-while getopts :bhgk:i:r:o:s:f:n:Sut:d:D:v:I:V:a: a ; do
+while getopts :bhgk:i:r:o:s:T:f:n:Sut:d:D:v:I:V:a: a ; do
case $a in
\:|\?)
case $OPTARG in
@@ -234,7 +241,8 @@ while getopts :bhgk:i:r:o:s:f:n:Sut:d:D:v:I:V:a: a ; do
f) echo "-f requires file system module list parameter";;
n) echo "-n requires network module list parameter";;
r) echo "-r requires root dir parameter";;
- s) echo "-s requires image size(s)";;
+ s) echo "-s requires setings file name";;
+ T) echo "-t requires theme name";;
t) echo "-t requires tmp dir parameter";;
d) echo "-d requires debug level (integer)";;
D) echo "-D requires linux Distribution name";;
@@ -253,7 +261,8 @@ while getopts :bhgk:i:r:o:s:f:n:Sut:d:D:v:I:V:a: a ; do
f) FSMODULES=$OPTARG;;
n) NWMODULES=$OPTARG ;;
r) ROOTDIR=$OPTARG;;
- s) theme=$OPTARG;;
+ s) settings_file=$OPTARG;;
+ T) theme=$OPTARG;;
t) INSTDIR=$OPTARG;;
d) IRFSDEBUG=$OPTARG;;
D) DISTRO=$OPTARG;;
@@ -291,6 +300,11 @@ mkdir -p ${INSTDIR}/usr/share
# needed for KNOPPIX hwsetup tool not to be confused with ${D_SYSCONFDIR}
mkdir -p ${INSTDIR}/etc/sysconfig
+if [ -n "${settings_file}" ] ; then
+ # copy settings file (slxconfig) into the right place:
+ cp $settings_file ${INSTDIR}/etc/sysconfig/slxconfig
+fi
+
# if still no distro name set, try to find it using significant files
if [ -z "${DISTRO}" ] ; then
if [ -e ${ROOTDIR}/etc/SuSE-release ] ; then