X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=etc%2Fgrml%2Ffai%2Fgrml%2Fgrml_cleanup_chroot;h=1e01e40da5469d248b16f3137a67d3c6d3065a03;hb=97e3cccdc3cc6e992cc4c485ee445adaaa396ac4;hp=463781872d0be2d3f2cebb930277b43e4522817b;hpb=398c7063b3d9796ee7bd1bbb85412e2370476574;p=grml-live.git diff --git a/etc/grml/fai/grml/grml_cleanup_chroot b/etc/grml/fai/grml/grml_cleanup_chroot index 4637818..1e01e40 100755 --- a/etc/grml/fai/grml/grml_cleanup_chroot +++ b/etc/grml/fai/grml/grml_cleanup_chroot @@ -73,22 +73,6 @@ if [ -x /usr/bin/make -a -r /usr/src/Makefile ] ; then eend $? fi -if [ -L /usr/include/linux ] ; then - einfo "/usr/include/linux is ok" ; eend 0 -elif [ -n "$GRML64" ] ; then - if [ -d /usr/src/linux-headers-"$KERNEL" ] ; then - einfo "grml64 detected, assuming /usr/src/linux-headers-$KERNEL is ok." ; eend 0 - else - ewarn "Warning: /usr/src/linux-headers-$KERNEL not found, exiting." ; eend 0 - fi -elif [ -d /usr/src/linux-headers-"$KERNEL" ] ; then - ewarn "Warning: /usr/include/linux is NOT a symlink to /usr/src/linux/include/linux/ (possible an error)" - ewarn "Common reason: you forgot to install linux-kernel-headers-grml and use linux-libc-dev instead" - eend 0 -else - ewarn "Warning: linux-headers-$KERNEL not installed." ; eend 0 -fi - einfo "Creating ~/.zshrc" touch ~/.zshrc eend $? @@ -190,7 +174,7 @@ eend $? einfo "Removing x-server-conffiles" rm -f /etc/X11/xorg.conf /etc/X11/XF86Config-4 \ - /etc/X11/XF86Config /etc/XF86Config /etc/XF86Config-4 + /etc/X11/XF86Config /etc/XF86Config /etc/XF86Config-4 eend $? einfo "Removing ssh-keys" @@ -261,7 +245,7 @@ einfo "Cleaning and removing some misc files and directories" /var/state/*/* /var/state/* /var/log/nessus/* \ /halt /reboot /ash.static /etc/dhcpc/*.info /etc/dhcpc/resolv* \ /etc/*passwd- /etc/*shadow- /etc/*group- /var/spool/postfix/maildrop/* \ - /etc/lvm/.cache 2>/dev/null + /etc/lvm/.cache /etc/lvm/cache/.cache /etc/lvm/backup/main 2>/dev/null rm -rf /tmp/* /var/tmp/* /var/tmp/.* /var/backups/* /.ssh /root/.ssh /home/*/.ssh \ /home/grml/* /home/grml/.??* /var/lib/texmf/ls-R /var/spool/texmf/ls-R \ /var/lib/mysql /var/log/lilo_log.* /core* 2>/dev/null @@ -369,7 +353,7 @@ eend $? # list dangling symlinks: ls **/*(-@) # # Security-audit: -# find / \! -type l -perm -2000 -ls > audit/sgid-files +# find / \! -type l -perm -2000 -ls > audit/sgid-files # find / \! -type l -perm -0002 -ls > audit/world-writeable-files # find / \! -type l -perm -4000 -ls > audit/suid-files # find / ( -perm 4000 -o -perm -2000 \) -exec ls -ld {} \; @@ -383,7 +367,7 @@ eend $? # file /usr/sbin/* | grep -v ', stripped' | grep -v 'perl' | grep -v 'Bourne' | grep -v 'python' | grep -v 'symbolic link' # # Is software by grml-repos up2date? -# grep-dctrl --field Maintainer 'Michael Prokop' /var/lib/apt/lists/grml.org_repos_._* | grep Package | awk '{print $2}' | xargs echo +# grep-dctrl --field Maintainer 'Michael Prokop' /var/lib/apt/lists/grml.org_repos_._* | grep Package | awk '{print $2}' | xargs echo # # runlevel.conf: # for file in /etc/init.d/* ; do grep $file -q /etc/runlevel.conf.hdinstall || echo $file not found ; done