diff options
author | Oliver Tappe | 2007-05-06 00:43:26 +0200 |
---|---|---|
committer | Oliver Tappe | 2007-05-06 00:43:26 +0200 |
commit | 2879d8906ed019d0e8f1c1ed108623a76d593380 (patch) | |
tree | 50620f0ace743d8a08d52a2cbcb76885b11f09c6 /initramfs/initrd-stuff/init | |
parent | * fixed syntax problems (diff) | |
download | core-2879d8906ed019d0e8f1c1ed108623a76d593380.tar.gz core-2879d8906ed019d0e8f1c1ed108623a76d593380.tar.xz core-2879d8906ed019d0e8f1c1ed108623a76d593380.zip |
* added option -S to mkdxsinitrd in order to pass in the system name
* replaced $DISTRO by $DISTRO_NAME and $DISTRO_VER
* added $SYSTEM_NAME and used it at a couple of places where $DISTRO was
used before
* removed the two tries to fetch the config-tgz without any system name,
as these are never generated by the demuxer anyway.
git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1007 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'initramfs/initrd-stuff/init')
-rwxr-xr-x | initramfs/initrd-stuff/init | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/initramfs/initrd-stuff/init b/initramfs/initrd-stuff/init index 9e829375..02dd457a 100755 --- a/initramfs/initrd-stuff/init +++ b/initramfs/initrd-stuff/init @@ -37,7 +37,9 @@ export date="${slxconf_date}" export DEBUGLEVEL=0 export KERNEL="${slxconf_kernver}" export NWMODULES="${slxconf_listnwmod}" -export DISTRO="${slxconf_distro}" +export DISTRO_NAME="${slxconf_distro_name}" +export DISTRO_VER="${slxconf_distro_ver}" +export SYSTEM_NAME="${slxconf_system_name}" export SLXVERSION="${slxconf_slxver}" # do not use dnbd cache file @@ -480,9 +482,9 @@ fi union_type="" # try to use unionfs for rw access if available -if [ -n "${unionfs}" ]; then +if [ -n "${unionfs}" ]; then modprobe ${MODPRV} unionfs && union_type="UnionFS" - if [ -z "$union_type" ]; then + if [ -z "$union_type" ]; then error "$init_loadufs" nonfatal unset unionfs # if unionfs is not available, check for aufs and inform user @@ -490,9 +492,9 @@ if [ -n "${unionfs}" ]; then fi fi # try to use aufs for rw access if available -if [ -n "${aufs}" ]; then +if [ -n "${aufs}" ]; then modprobe ${MODPRV} aufs && union_type="AUFS" - if [ -z "$union_type" ]; then + if [ -z "$union_type" ]; then error "$init_loadaufs" nonfatal unset aufs # if aufs is not available, check for unionfs and inform user @@ -509,13 +511,13 @@ if [ -n "${unionfs}" -o -n "${aufs}" ] ; then if [ "$union_type" == "UnionFS" ]; then mount -n -t unionfs -o dirs=${rwdir}/uniontmp:/rorootfs=${nfsro}ro \ none /mnt - elif [ "$union_type" == "AUFS" ]; then + elif [ "$union_type" == "AUFS" ]; then mount -n -t aufs -o br:/${rwdir}/uniontmp:/rorootfs=ro none /mnt fi mkdir -p /mnt/uniontmp mount -n --move ${rwdir}/uniontmp /mnt/uniontmp chmod 0755 /mnt/uniontmp /mnt - # run ldconfig if switched on via kernel command line (token ldsc) or + # run ldconfig if switched on via kernel command line (token ldsc) or # triggered by unionized root filesystem ldcfg # runlevel directories should contain no links @@ -643,12 +645,12 @@ if [ -z "$uniondirs" ]; then # does it contain "://"? if [ "$aufs" != "${aufs#*://}" ]; then uniondirs="$aufs" - fi + fi elif [ "$union_type" == "UnionFS" ]; then # does it contain "://"? if [ "$unionfs" != "${unionfs#*://}" ]; then uniondirs="$unionfs" - fi + fi fi fi # if locations are given that should be unioned with the fs root, do it |