EsPresto.org
Dienstag, 01. Juli 2008
du: cannot access `/var/cache/apt/archives/partial': Function not implemented
Für unsere Arbeitsstationen, die über NFS booten und sich ein Rootverzeichnis teilen, werden die Cronjobs innerhalb eines chroot aufgerufen.
Dabei kam es beim Aufruf des Cronjobs /etc/cron.daily/apt zu folgenden Fehlermeldungen:
du: cannot access `/var/cache/apt/archives/partial': Function not implemented
du: cannot access `/var/cache/apt/archives/gnome-applets-data_2.22.2-0ubuntu2_all.deb': Function not implemented
du: cannot access `/var/cache/apt/archives/gnome-applets_2.22.2-0ubuntu2_i386.deb': Function not implemented
[...]
Die Lösung war einen Wrapper zu erstellen, der vor dem Aufruf der Cronjobs /proc und /sys einbindet:
#!/bin/bash
if ! mountpoint /proc >/dev/null ; then
UMOUNT_PROC=true
mount /proc
mount /sys
fi
/bin/run-parts --report /etc/cron.daily
if [ "$UMOUNT_PROC" == "true" ]; then
umount /sys
umount /proc
fi
11:33 01.07.2008 | Permalink | Frank Schubert | Administration | Kommentare[0]
Kommentare: