Subject: postinstall bugs
To: None <current-users@netbsd.org>
From: Sean Davis <dive-nb@endersgame.net>
List: current-users
Date: 03/31/2003 11:01:21
Ok, I've been running current on this machine since about 1.4ZD... been
updating things fairly regularly (at least once a week), and postinstall has
(for the past few weeks) been whining about /var/db/obsolete (looks like a
bug in the postinstall script, but I haven't dug too deep) and now about
sendmail missing submit.cf and sendmail.cf being for version 9. Note that I
don't use sendmail, and never have on this machine since it's been running
NetBSD. Whatever is in /etc/mail has been there since install, and if
etcupdate doesn't handle it, hasn't been updated.

For example:
eros# /etc/postinstall check
Source directory: /usr/src
Target directory: /
postinstall check:
defaults check:
mtree check:
gid check:
uid check:
periodic check:
rc check:
ssh check:
wscons check:
makedev check:
postfix check:
obsolete check:
eval: cannot open /var/db/obsolete/*: no such file
sendmail check:
        /usr/libexec/sendmail/sendmail binary has wrong owner/mode
        Version of /etc/mail/sendmail.cf is 9, should be 10
        Submission configuration file /etc/mail/submit.cf missing
postinstall checks passed: postinstall defaults mtree gid uid periodic rc
ssh wscons makedev postfix
postinstall checks failed: obsolete sendmail
To fix, run:
    /etc/postinstall -s /usr/src -d / fix obsolete sendmail
eros# /etc/postinstall -s /usr/src -d / fix obsolete sendmail
Source directory: /usr/src
Target directory: /
obsolete fix:
eval: cannot open /var/db/obsolete/*: no such file
sendmail fix:
chown: /usr/libexec/sendmail/sendmail: No such file or directory
        /usr/libexec/sendmail/sendmail binary has wrong owner/mode [NOT
FIXED]
        Version of /etc/mail/sendmail.cf is 9, should be 10 [NOT FIXED]
        Submission configuration file /etc/mail/submit.cf missing [NOT
FIXED]
postinstall fixes passed:
postinstall fixes failed: obsolete sendmail

FWIW, /var/db/obsolete exists, because etcupdate wanted to create it a dozen
or so updates ago. But there has never been anything in there that I know
of.

The chown warning should be ignored by anyone responding to this, becuase I
always delete the (formerly setuid, now setgid) sendmail binary right after
updating userland. Even when I've not done that, the postinstall fix .. ..
results are the same, except of course for the chown part.

What gives? shouldn't postinstall understand that there might not be
anything in /var/db/obsolete? should I remove that DIR? And shouldn't
etcupdate have provided me with a new sendmail.cf and submit.cf if they are
crucial to postinstall reporting nothing wrong?

-Sean


-- 
/~\ The ASCII
\ / Ribbon Campaign                   Sean Davis
 X  Against HTML                       aka dive
/ \ Email!