diff options
author | Dirk von Suchodoletz | 2006-03-25 01:44:23 +0100 |
---|---|---|
committer | Dirk von Suchodoletz | 2006-03-25 01:44:23 +0100 |
commit | 58f6fae954426db04c221be1377786afdccea3f7 (patch) | |
tree | f52d890438648bad9295e7614f6bc9a50620f150 /initrd/initrd-stuff/bin/servconfig | |
parent | integration of vmware module. hw modules to ignore for loading ... (diff) | |
download | core-58f6fae954426db04c221be1377786afdccea3f7.tar.gz core-58f6fae954426db04c221be1377786afdccea3f7.tar.xz core-58f6fae954426db04c221be1377786afdccea3f7.zip |
move vm-mount into InitRD, heavy cleanups in initial ramdisk
environment, ...
git-svn-id: http://svn.openslx.org/svn/openslx/ld4@127 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'initrd/initrd-stuff/bin/servconfig')
-rwxr-xr-x | initrd/initrd-stuff/bin/servconfig | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/initrd/initrd-stuff/bin/servconfig b/initrd/initrd-stuff/bin/servconfig index d7f784c0..6de5ba48 100755 --- a/initrd/initrd-stuff/bin/servconfig +++ b/initrd/initrd-stuff/bin/servconfig @@ -4,7 +4,7 @@ # for linux diskless clients (executed within initial # ramdisk) # -# Author(s): Dirk von Suchodoletz <dirk@goe.net>, 23-03-2006 +# Author(s): Dirk von Suchodoletz <dirk@goe.net>, 25-03-2006 # Blabla # Blub # @@ -54,7 +54,7 @@ data via dhcp until now ..." nonfatal . /etc/machine-setup # hack for replacing variables ($serverip, $clientip, $host_name) in # machine-setup -sed -e "s/\$serverip/$serverip/" -e "s/\$clientip/$clientip/" \ +sed -e "s/\$serverip/$serverip/;s/\$clientip/$clientip/" \ /etc/machine-setup > /etc/machine-setup.new cp /etc/machine-setup.new /etc/machine-setup . /etc/machine-setup @@ -191,6 +191,15 @@ config_snmp 24 02 # create needed directories and files if [ "x$vmware" != "x" ] || [ "x$vmware" != "xno" ] ; then + # in the future other types of sources besides NFS should be supported + mount -t nfs -o ro,nolock,intr,nodev,soft,timeo=2,nosuid \ + ${imgsrv} /mnt/${vmdir} & + # generate a runlevel script + d_mkrlscript init vmware-prep "Starting preparation of vmware environment" + sed "s,^#.*,,;/^$/d;s,^,\t," /etc/vmware-prep >> \ + /mnt/etc/${D_INITDIR}/vmware-prep + d_mkrlscript close vmware-prep "" + chmod u+x /mnt/etc/${D_INITDIR}/vmware-prep config_vmware for i in /var/lib/vmware /etc/vmware/vmnet1 /etc/vmware/vmnet8 \ /var/run/vmware ; do |