summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Janczyk2012-11-08 18:35:32 +0100
committerMichael Janczyk2012-11-08 18:35:32 +0100
commite97ae06e586dbe8b704a548cc745818a37fc89b1 (patch)
treec2455fed76cf51c1ec0a5fa211c3c550e2e90ea8
parentadded rhel, centos, scientific linux 5 and 6. (diff)
downloadcore-e97ae06e586dbe8b704a548cc745818a37fc89b1.tar.gz
core-e97ae06e586dbe8b704a548cc745818a37fc89b1.tar.xz
core-e97ae06e586dbe8b704a548cc745818a37fc89b1.zip
leave dir tree in /var but delete the files, see comment
-rw-r--r--src/installer/OpenSLX/OSExport/Distro/Rhel.pm106
1 files 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;
}