From 8cd82995c9c01fac59aa5ff6ef17a098d73db5d9 Mon Sep 17 00:00:00 2001 From: Dirk von Suchodoletz Date: Thu, 30 Mar 2006 20:10:13 +0000 Subject: more debug level, exclude-common for rsync (files and directories common for all distros), ... git-svn-id: http://svn.openslx.org/svn/openslx/ld4@132 95ad53e4-c205-0410-b2fa-d234c58c8868 --- installer/distro-specs/exclude-common | 29 +++++++++++++++++++++++++++++ installer/distro-specs/exclude-suse-10.1 | 29 ++--------------------------- installer/ld4-inst | 10 ++++++---- 3 files changed, 37 insertions(+), 31 deletions(-) create mode 100644 installer/distro-specs/exclude-common (limited to 'installer') diff --git a/installer/distro-specs/exclude-common b/installer/distro-specs/exclude-common new file mode 100644 index 00000000..9fffa442 --- /dev/null +++ b/installer/distro-specs/exclude-common @@ -0,0 +1,29 @@ ++ /bin ++ /boot ++ /dev ++ /etc ++ /home ++ /lib ++ /lib64 ++ /mnt ++ /opt ++ /proc ++ /root ++ /sbin ++ /sys ++ /tmp ++ /usr ++ /var +- /etc/shadow* +- /dev/* +- /proc/* +- /sys/* +- /tmp/* +- /root/* +- /home/* +- /mnt/* +- /* +- .svn +- *~ +- *lost+found* + diff --git a/installer/distro-specs/exclude-suse-10.1 b/installer/distro-specs/exclude-suse-10.1 index 7e49a641..17152259 100644 --- a/installer/distro-specs/exclude-suse-10.1 +++ b/installer/distro-specs/exclude-suse-10.1 @@ -1,22 +1,4 @@ -+ /bin -+ /boot -+ /dev -+ /etc -+ /home -+ /lib -+ /lib64 + /media -+ /mnt -+ /opt -+ /proc -+ /root -+ /sbin -+ /sys -+ /tmp -+ /usr -+ /var -- .svn -- *~ - *.rpmsave - *.rpmnew - *.YaST2save @@ -25,13 +7,6 @@ - /lib/klibc/events/* - /boot/initrd* - /boot/grub -- /dev/* -- /etc/shadow* -- /proc/* -- /sys/* -- /tmp/* -- /root/* -- /home/* - /var/cache/man/* - /var/lib/YaST2/you/mnt/* - /var/lib/hardware/* @@ -42,8 +17,8 @@ - /var/lib/xdm - /usr/share/vmware/* - *lost+found* -- /mnt/* - /media/* - /opt/kde3/share/autostart/SUSEgreeter.desktop - /opt/kde3/share/autostart/suseplugger.desktop -- /* +- /opt/kde3/share/autostart/profile_chooser-autostart.desktop +- /opt/kde3/share/autostart/knetworkmanager-autostart.desktop diff --git a/installer/ld4-inst b/installer/ld4-inst index 4407a708..9bb4c6c3 100755 --- a/installer/ld4-inst +++ b/installer/ld4-inst @@ -3,8 +3,8 @@ # Description: Script for generating dxs filesystem by # cloning from rsync source for Diskless X Stations (v4.0) # -# Author(s): Nico Dietrich -# Dirk von Suchodoletz , 02-11-2005 +# Author(s): Nico Dietrich, 22-03-2006 +# Dirk von Suchodoletz , 30-03-2006 # # Copyright: (c) 2003, 2005 - RZ Universitaet Freiburg # @@ -208,7 +208,9 @@ configure() { copy_system() { echo -e "\n\nSyncing system now\nPlease enter root password of client machine\n" - rsync -avDe ssh --delete --exclude-from=distro-specs/exclude-${client_distro}-${client_distro_ver} ${rsyncsource} ${rootdir} || { echo "Rsync failed" ; exit 1 ; } + rsync -avDe ssh --delete --exclude-from=distro-specs/exclude-common \ + --exclude-from=distro-specs/exclude-${client_distro}-${client_distro_ver} \ + ${rsyncsource} ${rootdir} || { echo "Rsync failed" ; exit 1 ; } # generate error message in case rsync didn't work and exit. @@ -302,7 +304,7 @@ setup_server () { current_initrd=${tftpbootdir}/initrd-dxs-${current_kernel} if [ $j -eq 0 ] ; then - default_string=" MENU DEFAULT\n" + default_string="\tMENU DEFAULT\n" else default_string="" fi -- cgit v1.2.3-55-g7522