Hi,
Let's try to debug it even more: Does it also happen if you do this by
hand, as opposed to using dpkg-reconfigure?
/var/lib/dpkg/info/base-files.postinst configure 5lenny3
I can reproduce this with it:
u...@srv-mfm-vm01:~$ ls -l /dev/null
crw-rw-rw- 1 root root 1, 3 2009-06-09 10:40 /dev/null
u...@srv-mfm-vm01:~$ sudo /var/lib/dpkg/info/base-files.postinst
configure 5lenny3
u...@srv-mfm-vm01:~$ ls -l /dev/null
crw-r--r-- 1 root root 1, 3 2009-06-09 10:40 /dev/null
The debug output of this script:
u...@srv-mfm-vm01:~$ sudo sh -x /var/lib/dpkg/info/base-files.postinst
configure 5lenny3
+ set -e
+ '[' configure = configure ']'
+ '[' 5lenny3 = '' ']'
+ '[' configure = configure ']'
+ '[' 5lenny3 '!=' '' ']'
+ '[' '!' -d /var/spool/mail ']'
+ '[' '!' -L /var/mail ']'
+ '[' '!' -d /var/mail ']'
+ preserve_directory floppy
+ '[' -f /etc/base-files.create-floppy ']'
+ preserve_directory cdrom
+ '[' -f /etc/base-files.create-cdrom ']'
+ preserve_directory initrd
+ '[' -f /etc/base-files.create-initrd ']'
+ '[' '!' -f /etc/adjtime ']'
+ echo '0.000000 1228000000 0.000000'
+ echo 1228000000
+ echo UTC
+ chmod 644 /etc/adjtime
+ '[' '!' -f /var/run/utmp ']'
+ chown root:utmp /var/run/utmp
+ chmod 664 /var/run/utmp
+ '[' '!' -d /var/lib/dpkg ']'
+ '[' '!' -f /var/lib/dpkg/status ']'
+ '[' '!' -f /usr/info/dir ']'
+ '[' '!' -f /usr/share/info/dir ']'
+ rm -f /etc/base-files.mailsymlink
+ '[' configure = configure ']'
+ '[' 5lenny3 '!=' '' ']'
+ '[' -f /etc/motd ']'
++ awk 'NR > 2' /etc/motd
++ md5sum
++ awk '{print $1}'
+ oldmd=4279a571b7307093a0cb948ba90b498c
++ awk 'NR > 2' /usr/share/base-files/motd
++ md5sum
++ awk '{print $1}'
+ newmd=efd9f20ea448edfcf103a460f5cfad34
+ '[' 4279a571b7307093a0cb948ba90b498c '!='
efd9f20ea448edfcf103a460f5cfad34 ']'
+ grep -q 4279a571b7307093a0cb948ba90b498c
/usr/share/base-files/motd.md5sums
+ '[' -f /var/lib/dpkg/info/base.list ']'
u...@srv-mfm-vm01:~$
The postinst references /dev/null twice, at the very beginning, like this:
And this gave me the right hint.
+ chmod 644 /etc/adjtime
and
u...@srv-mfm-vm01:~$ ls -l /etc/adjtime
lrwxrwxrwx 1 root root 9 2009-03-31 18:30 /etc/adjtime -> /dev/null
As I can find this symlink here on all my Lenny machines, I need to find
out whether it is create by a package or any other mechanism.
Cheers,
Andreas
--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org