From e97ae06e586dbe8b704a548cc745818a37fc89b1 Mon Sep 17 00:00:00 2001 From: Michael Janczyk Date: Thu, 8 Nov 2012 18:35:32 +0100 Subject: leave dir tree in /var but delete the files, see comment --- src/installer/OpenSLX/OSExport/Distro/Rhel.pm | 106 +++++++++++++++----------- 1 file changed, 60 insertions(+), 46 deletions(-) diff --git a/src/installer/OpenSLX/OSExport/Distro/Rhel.pm b/src/installer/OpenSLX/OSExport/Distro/Rhel.pm index a2cd9a86..330b2d14 100644 --- a/src/installer/OpenSLX/OSExport/Distro/Rhel.pm +++ b/src/installer/OpenSLX/OSExport/Distro/Rhel.pm @@ -36,57 +36,71 @@ sub initDistroInfo { my $self = shift; + # To only sync an empty directory tree use + # + /path/*/ + # - /path/* $self->{'export-filter'} = " - - /var/tmp/* - - /var/spool/* - - /var/run/* - - /var/mail - - /var/log/* - - /var/lock/* - - /var/lib/xdm - - /var/lib/vm* - - /var/lib/suspend* - - /var/lib/smart - - /var/lib/gdm/* - - /var/lib/dhcp* - - /var/lib/bluetooth/ - - /var/cache/yum - - /var/cache/man/* - - /var/cache/zypp/* - + /usr/lib/python*/*/*.o - + /usr/lib/perl5/*/*/*/*.o - + /usr/lib/gcc/*/*/*.o - + /usr/lib/*.o - + /usr/X11R6/lib/modules/drivers/*.o - + /usr/X11R6/lib/modules/drivers/linux/*.o - - /usr/bin/BackGround - - /tmp/* - - /sys/* - - /proc/* - - /opt/kde3/share/apps/kdm/read_sysconfig.sh - - /opt/kde3/share/autostart/runupdater.desktop - - /opt/kde3/share/autostart/profile_chooser-autostart.desktop - - /opt/kde3/share/autostart/kinternet.desktop - - /usr/share/gnome/autostart/gpk-update-icon*.desktop - - /mnt/* - - /media/* - + /media - + /lib/modules/*/misc/vmblock.o - + /lib/modules/*/misc/vmnet.o - + /lib/modules/*/misc/vmmon.o + - *~ + - *.rpmnew + - *.rpmsave + - /boot/grub + - /boot/initrd* + - /etc/cron.*/* + - /etc/dhcp* + - /etc/netplug* + - /etc/*ppp* + - /etc/*pptp* - /etc/*rpmnew - /etc/*rpmorig - - /etc/*pptp* - - /etc/*ppp* - - /etc/dhcp* - - /etc/cron.*/* - - /etc/netplug* - /etc/sysconfig/network-scripts/ifcfg-* - /etc/X11/xkb - - /boot/initrd* - - /boot/grub - - *.rpmsave - - *.rpmnew + + /lib/modules/*/misc/vmblock.o + + /lib/modules/*/misc/vmmon.o + + /lib/modules/*/misc/vmnet.o + - /media/* + + /media + - /mnt/* + - /opt/kde3/share/apps/kdm/read_sysconfig.sh + - /opt/kde3/share/autostart/kinternet.desktop + - /opt/kde3/share/autostart/profile_chooser-autostart.desktop + - /opt/kde3/share/autostart/runupdater.desktop + - /proc/* + - /sys/* + - /tmp/* + - /usr/bin/BackGround + + /usr/lib/gcc/*/*/*.o + + /usr/lib/*.o + + /usr/lib/perl5/*/*/*/*.o + + /usr/lib/python*/*/*.o + - /usr/share/gnome/autostart/gpk-update-icon*.desktop + + /usr/X11R6/lib/modules/drivers/linux/*.o + + /usr/X11R6/lib/modules/drivers/*.o + + /var/cache/*/ + - /var/cache/* + - /var/cache/*/* + - /var/cfengine/* + + /var/lib/bluetooth/*/ + - /var/lib/bluetooth/* + - /var/lib/dhcp* + - /var/lib/gdm/* + - /var/lib/smart + - /var/lib/suspend* + - /var/lib/vm* + - /var/lib/xdm + + /var/lock/*/ + - /var/lock/* + - /var/lock/*/* + + /var/log/*/ + - /var/log/* + - /var/log/*/* + - /var/mail + + /var/run/*/ + - /var/run/* + - /var/run/*/* + + /var/spool/*/ + - /var/spool/* + - /var/spool/*/* + - /var/tmp/* "; return; } -- cgit v1.2.3-55-g7522