From d361097554e8d5a99b535aef00f07515e481278a Mon Sep 17 00:00:00 2001 From: Dirk von Suchodoletz Date: Thu, 6 Apr 2006 10:43:02 +0000 Subject: some more for the nbd, squashfs support ... git-svn-id: http://svn.openslx.org/svn/openslx/ld4@167 95ad53e4-c205-0410-b2fa-d234c58c8868 --- installer/distro-specs/config-debian | 3 +++ installer/distro-specs/config-gentoo | 10 ++++++++++ installer/ld4-inst | 38 ++++++++++++++++++++++++++++-------- 3 files changed, 43 insertions(+), 8 deletions(-) create mode 100644 installer/distro-specs/config-gentoo (limited to 'installer') diff --git a/installer/distro-specs/config-debian b/installer/distro-specs/config-debian index 7284def8..2e71bfd2 100644 --- a/installer/distro-specs/config-debian +++ b/installer/distro-specs/config-debian @@ -5,3 +5,6 @@ client_conf="/etc/dxs/client.cfg/machine-setup.default" # this variable choses which atftpd template file to chose atftpd_conf_name="atftpd_default" + +# wild guess on correct format of password string (dxs-root) +root_pw='$1$yhUR.J5f$t4Djzm0SWX1hCmCVoIZ371' diff --git a/installer/distro-specs/config-gentoo b/installer/distro-specs/config-gentoo new file mode 100644 index 00000000..a0119071 --- /dev/null +++ b/installer/distro-specs/config-gentoo @@ -0,0 +1,10 @@ +dhcpd_conf="/etc/dhcpd.conf" +atftpd_conf="/etc/conf.d/atftpd" +exports_conf="/etc/exports" +client_conf="/etc/dxs/client.cfg/machine-setup.default" + +# this variable choses which atftpd template file to chose +atftpd_conf_name="atftpd_default" + +# wild guess on correct format of password string (dxs-root) +root_pw='$1$yhUR.J5f$t4Djzm0SWX1hCmCVoIZ371' diff --git a/installer/ld4-inst b/installer/ld4-inst index cf7ca126..88d314df 100755 --- a/installer/ld4-inst +++ b/installer/ld4-inst @@ -4,7 +4,7 @@ # cloning from rsync source for Diskless X Stations (v4.0) # # Author(s): Nico Dietrich, 04-04-2006 -# Dirk von Suchodoletz , 05-04-2006 +# Dirk von Suchodoletz , 06-04-2006 # # Copyright: (c) 2003, 2006 - RZ Universitaet Freiburg # @@ -288,6 +288,13 @@ create_initrd() { mkdir -p ${tftpbootdir} declare -i j=0 + # add nfs modules -f if nfs is choosen + fsmod=nfs + # add nbd module and the selected filesystem ontop + [ -n "$nbdyes" ] && fsmod=$fsmod" nbd $nbdfs" + fsmod=" -f \"$fsmod\"" + # one big initrd or several smaller "specialized" ones!? + # FIXME: mkdxsinitrd currently wants to run from own directory # ugly workaround... cd ../initrd @@ -340,7 +347,12 @@ ${rootdir} ${netname}/${netmask}(ro,no_root_squash,async)" \ [ -d ${tftpbootdir} ] || mkdir -p ${tftpbootdir} rsync -a --exclude=.svn default_files/tftpboot/* ${tftpbootdir} - sed -e "s,@@@server@@@,${server},g;s,@@@tftpbootdir@@@,${tftpbootdir},g;s,@@@pxe_passwd@@@,${pxe_passwd},g;s,@@@client_distro@@@,${client_distro},g;s,@@@client_distro_ver@@@,${client_distro_ver},g;s,@@@rootdir@@@,${rootdir},g" default_files/default > ${dxs_conf}/${dxs_pxedefault_conf}-${timestamp} + sed -e "s,@@@server@@@,${server},g;s,@@@tftpbootdir@@@,${tftpbootdir},g" \ + -e "s,@@@pxe_passwd@@@,${pxe_passwd},g" \ + -e "s,@@@client_distro@@@,${client_distro},g" \ + -e "s,@@@client_distro_ver@@@,${client_distro_ver},g" \ + -e "s,@@@rootdir@@@,${rootdir},g" default_files/default \ + > ${dxs_conf}/${dxs_pxedefault_conf}-${timestamp} declare -i j=0 while [ $j -lt ${#choice[@]} ] ; do @@ -348,15 +360,25 @@ ${rootdir} ${netname}/${netmask}(ro,no_root_squash,async)" \ current_initrd=${tftpbootdir}/initrd-dxs-${current_kernel} if [ $j -eq 0 ] ; then - default_string="\tMENU DEFAULT\n" + default_string=" MENU DEFAULT\n" else default_string="" fi - echo -e "LABEL ${client_distro}-${current_kernel}\n${default_string} \ - MENU LABEL $j. ${client_distro}-${client_distro_ver} ${current_kernel} Diskless\n \ - KERNEL ${server}::${tftpbootdir}/vmlinuz-${current_kernel}\n \ - APPEND nfsroot=${server}:${rootdir} initrd=${server}::${tftpbootdir}/initrd-dxs-${current_kernel} apic dhcp noldsc vci=DXS\n \ - ipappend 1\n\n" >> ${dxs_conf}/${dxs_pxedefault_conf}-${timestamp} + echo -e "LABEL ${client_distro}-${current_kernel}\n${default_string}\ + MENU LABEL $j. ${client_distro}-${client_distro_ver} ${current_kernel} Diskless\n \ + KERNEL ${server}::${tftpbootdir}/vmlinuz-${current_kernel}\n \ + APPEND nfsroot=${server}:${rootdir} initrd=${server}::${tftpbootdir}/initrd-dxs-${current_kernel} apic dhcp noldsc vci=DXS\n \ + ipappend 1\n\n" >> ${dxs_conf}/${dxs_pxedefault_conf}-${timestamp} + + if [ -n "$nbdyes" ] ; then + j=$j+1 + # create configs for nbd/squashfs kernels too + echo -e "LABEL ${client_distro}-${current_kernel}-nbd\n\ + MENU LABEL $j. ${client_distro}-${client_distro_ver} ${current_kernel} Diskless NBD\n \ + KERNEL ${server}::${tftpbootdir}/vmlinuz-${current_kernel}\n \ + APPEND nbdroot=${server}:5000,${nbdfs} initrd=${server}::${tftpbootdir}/initrd-dxs-${current_kernel} apic dhcp noldsc vci=DXS\n \ + ipappend 1\n\n" >> ${dxs_conf}/${dxs_pxedefault_conf}-${timestamp} + fi j=$j+1 done -- cgit v1.2.3-55-g7522