diff options
author | Dirk von Suchodoletz | 2006-05-20 12:55:37 +0200 |
---|---|---|
committer | Dirk von Suchodoletz | 2006-05-20 12:55:37 +0200 |
commit | 54f1dd768140dc09dedd7f5e55e8ff94fba1daf8 (patch) | |
tree | 07a33ec9b716d72d43e924a8c6cfe0c30a0bed7f /installer | |
parent | kiosk mode enabled, cleanup in functions-10.1, ignore atiixp_modem (diff) | |
download | core-54f1dd768140dc09dedd7f5e55e8ff94fba1daf8.tar.gz core-54f1dd768140dc09dedd7f5e55e8ff94fba1daf8.tar.xz core-54f1dd768140dc09dedd7f5e55e8ff94fba1daf8.zip |
fixes in the installer (dhcpd.conf on SuSE servers), ...
git-svn-id: http://svn.openslx.org/svn/openslx/ld4@223 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'installer')
-rw-r--r-- | installer/default_files/dhcpd.conf | 4 | ||||
-rwxr-xr-x | installer/ld4-inst | 40 |
2 files changed, 28 insertions, 16 deletions
diff --git a/installer/default_files/dhcpd.conf b/installer/default_files/dhcpd.conf index 1551b5d6..38e612f7 100644 --- a/installer/default_files/dhcpd.conf +++ b/installer/default_files/dhcpd.conf @@ -50,7 +50,7 @@ next-server @@@server@@@; # type of displaymanager to use (it should be installed # correctly on the server: XDMCP must be enabled then!) -#deny unknown-clients; +#deny unknown-clients; allow bootp; #allow booting; default-lease-time 160000; @@ -89,7 +89,7 @@ group { allow booting; } # else { ignore booting; } -# option root-path "@@@rootpath@@@"; +# option root-path "@@@rootdir@@@"; option domain-name-servers 132.230.200.200,132.230.200.201; option domain-name "dxs.site"; option ntp-servers 132.230.1.9; diff --git a/installer/ld4-inst b/installer/ld4-inst index 2bbdcd88..4d6453a5 100755 --- a/installer/ld4-inst +++ b/installer/ld4-inst @@ -4,11 +4,11 @@ # cloning from rsync source for Diskless X Stations (v4.0) # # Author(s): Nico Dietrich, 04-04-2006 -# Dirk von Suchodoletz <dirk@goe.net>, 11-06-2006 +# Dirk von Suchodoletz <dirk@goe.net>, 20-05-2006 # # Copyright: (c) 2003, 2006 - RZ Universitaet Freiburg # -# Version: 0.2.0e +# Version: 0.2.1a DEBUG=0 header() { @@ -300,13 +300,17 @@ create_nbd() { if isyes $nbdyes ; then # TODO: mksquashfs (background process) if [ "$nbdfs" = "squashfs" ] ; then - echo -e "\nGenerating SquashFS image ${rootdir}.squashfs (ca. 30 min.)" - if `which mksquashfs &>/dev/null` ; then - mv ${rootdir}.squashfs ${rootdir}.squashfs.old - echo "mksquashfs ${rootdir} ${rootdir}.squashfs" - mksquashfs ${rootdir} ${rootdir}.squashfs & - else - echo -e "Tool 'mksquashfs' not found, skipping" + if ps aux|grep -v grep|grep mksquashfs &>/dev/null ; then + echo "Found other mksquashfs process running, skipping this step." + else + echo -e "\nGenerating SquashFS image ${rootdir}.squashfs (ca. 30 min.)" + if `which mksquashfs &>/dev/null` ; then + mv ${rootdir}.squashfs ${rootdir}.squashfs.old + echo "mksquashfs ${rootdir} ${rootdir}.squashfs" + mksquashfs ${rootdir} ${rootdir}.squashfs & + else + echo -e "Tool 'mksquashfs' not found, skipping" + fi fi else # to be extended @@ -328,7 +332,8 @@ create_initrd() { done if [ $i -eq 0 ] ; then - echo "No kernels found in ${rootdir}/boot, so no initial ramdisk is created and linked to ${tftpbootdir}." + echo "No kernels found in ${rootdir}/boot, so no initial ramdisk is \ +created and linked to ${tftpbootdir}." kernel_choice="" elif [ $i -eq 1 ] ; then echo "Found one kernel in ${rootdir}/boot." @@ -340,7 +345,8 @@ create_initrd() { echo "$j: ${kernel[$j]}" j=$j+1 done - ask "Please chose kernels to create initial ramdisks for (space separated numbers) " kernel_choice "${kernel_choice}" + ask "Please chose kernels to create initial ramdisks for (space \ +separated numbers) " kernel_choice "${kernel_choice}" fi choice=( ${kernel_choice} ) # make sure /$tftbootdir exists @@ -483,8 +489,14 @@ ${rootdir} ${netname}/${netmask}(ro,no_root_squash,async)" \ fi # linking files # if SuSE und DHCP dann Kopie statt Link - #if ! expr index ${dxs_conf} "dhcp" - ln -sf ${dxs_conf}/${1}-${timestamp} ${2}${extension} + echo "SD: ${server_distro}, ${dxs_dhcpd_conf}" + if [ ${server_distro} = "suse" ] && echo ${dxs_dhcpd_conf}|\ + grep dhcp &>/dev/null; then + rm ${2}${extension} &>/dev/null + cp ${dxs_conf}/${1}-${timestamp} ${2}${extension} + else + ln -sf ${dxs_conf}/${1}-${timestamp} ${2}${extension} + fi fi done } @@ -520,7 +532,7 @@ dxs_client_conf="client.cfg/machine-setup.default" header precheck #(run as root, rsync etc.) configure -copy_system +#copy_system create_nbd create_initrd setup_server |