Subject: toolchain/26629: postinstall from 1.6.1 to 2.0_BETA does not update sendmail.cf
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <jcline@d2tech.com>
List: netbsd-bugs
Date: 08/11/2004 21:20:09
>Number:         26629
>Category:       toolchain
>Synopsis:       postinstall from 1.6.1 to 2.0_BETA does not update sendmail.cf
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    toolchain-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Aug 12 18:33:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Jonathan Cline
>Release:        2.0_BETA
>Organization:
-
>Environment:
NetBSD esr 2.0_BETA NetBSD 2.0_BETA (JC_DELL)
>Description:
Upgraded stock 1.6.1 to 2.0_BETA after fetching tar_files
from ftp dir NetBSD-release-2-0.
This problem is likely obvious to those in the know..

Upon upgrading userland, initial install attempt at postinstall 
failed due to:
1. no user smmsp (I fixed this manually)
2. no group smmsp (I fixed this manually)
3. "Version of ///etc/mail/sendmail.cf is 9, should be 10"


Fixing #1, #2 and re-running postinstall fixed everything
except #3.

Subsequent runs of postinstall yield the following.

--------------------------------------------------------------
Source directory: /usr/src
Target directory: /
sendmail fix:
	Version of /etc/mail/sendmail.cf is 9, should be 10 [NOT FIXED]
postinstall fixes passed:
postinstall fixes failed: sendmail

--------------------------------------------------------------



Now upon boot the following error msgs are issued.

/etc/rc: WARNING: sendmail.cf has wrong version (have 9, should be 10)
...
... ... readcf: unknown option name AutoRebuildAliases


Please see the initial build.sh output below.


----------------------------------------------------------
===> build.sh command: ./build.sh -O /usr/obj -T /usr/tools install=/
===> build.sh started: Tue Aug 10 10:12:55 PDT 2004
===> MACHINE:          i386
===> MACHINE_ARCH:     i386
===> TOOLDIR path:     /usr/tools
===> DESTDIR path:     /usr/obj/destdir.i386
===> RELEASEDIR path:  /usr/obj/releasedir
===> makewrapper:      /usr/tools/bin/nbmake-i386
===> Updated /usr/tools/bin/nbmake-i386
(cd /usr/src/distrib/sets &&  /usr/tools/bin/nbmake INSTALLDIR=/ INSTALLSETS= installsets)
cd /usr/src/distrib/sets &&  DESTDIR=/usr/obj/destdir.i386  MACHINE=i386 MACHINE_ARCH=i386  CKSUM=/usr/tools/bin/nbcksum MAKE=/usr/tools/bin/nbmake MTREE=/usr/tools/bin/nbmtree  MKTEMP=/usr/tools/bin/nbmktemp PAX=/usr/tools/bin/nbpax HOST_SH=sh  sh ./maketars -d /usr/obj/destdir.i386   -N /usr/src/etc   -i / 
Copying set base
Copying set comp
Copying set games
Copying set man
Copying set misc
Copying set text
(cd /usr/src &&  /usr/tools/bin/nbmake DESTDIR=/ postinstall-check)
   === Post installation checks ===
sh /usr/src/etc/postinstall -s /usr/src -d // check
Source directory: /usr/src
Target directory: //
postinstall check:
	/usr/src/etc/postinstall != ///etc/postinstall
etc_release check:
	etc/release is built by /usr/src/etc/Makefile; skipping check
defaults check:
	/usr/src/etc/defaults/daily.conf != ///etc/defaults/daily.conf
	/usr/src/etc/defaults/rc.conf != ///etc/defaults/rc.conf
	/usr/src/etc/defaults/security.conf != ///etc/defaults/security.conf
mtree check:
	/usr/src/etc/mtree/NetBSD.dist != ///etc/mtree/NetBSD.dist
	/usr/src/etc/mtree/special != ///etc/mtree/special
gid check:
	Missing groups: smmsp
uid check:
	Missing users: smmsp
periodic check:
	/usr/src/etc/daily != ///etc/daily
	/usr/src/etc/security != ///etc/security
rc check:
	/usr/src/etc/rc != ///etc/rc
	/usr/src/etc/rc.subr != ///etc/rc.subr
	/usr/src/etc/rc.d/altqd != ///etc/rc.d/altqd
	/usr/src/etc/rc.d/bootconf.sh != ///etc/rc.d/bootconf.sh
	/usr/src/etc/rc.d/ccd != ///etc/rc.d/ccd
	///etc/rc.d/cgd does not exist
	/usr/src/etc/rc.d/downinterfaces != ///etc/rc.d/downinterfaces
	///etc/rc.d/fixsb does not exist
	/usr/src/etc/rc.d/fsck != ///etc/rc.d/fsck
	///etc/rc.d/identd does not exist
	/usr/src/etc/rc.d/ifwatchd != ///etc/rc.d/ifwatchd
	/usr/src/etc/rc.d/ipfs != ///etc/rc.d/ipfs
	/usr/src/etc/rc.d/ipmon != ///etc/rc.d/ipmon
	/usr/src/etc/rc.d/ipnat != ///etc/rc.d/ipnat
	/usr/src/etc/rc.d/ldconfig != ///etc/rc.d/ldconfig
	/usr/src/etc/rc.d/lkm1 != ///etc/rc.d/lkm1
	/usr/src/etc/rc.d/lkm2 != ///etc/rc.d/lkm2
	/usr/src/etc/rc.d/lkm3 != ///etc/rc.d/lkm3
	///etc/rc.d/mixerctl does not exist
	/usr/src/etc/rc.d/named != ///etc/rc.d/named
	/usr/src/etc/rc.d/network != ///etc/rc.d/network
	/usr/src/etc/rc.d/ntpd != ///etc/rc.d/ntpd
	/usr/src/etc/rc.d/ntpdate != ///etc/rc.d/ntpdate
	/usr/src/etc/rc.d/postfix != ///etc/rc.d/postfix
	///etc/rc.d/powerd does not exist
	/usr/src/etc/rc.d/quota != ///etc/rc.d/quota
	/usr/src/etc/rc.d/raidframe != ///etc/rc.d/raidframe
	/usr/src/etc/rc.d/raidframeparity != ///etc/rc.d/raidframeparity
	///etc/rc.d/rtclocaltime does not exist
	/usr/src/etc/rc.d/savecore != ///etc/rc.d/savecore
	/usr/src/etc/rc.d/sendmail != ///etc/rc.d/sendmail
	///etc/rc.d/smmsp does not exist
	/usr/src/etc/rc.d/sshd != ///etc/rc.d/sshd
	///etc/rc.d/staticroute does not exist
	/usr/src/etc/rc.d/sysdb != ///etc/rc.d/sysdb
	/usr/src/etc/rc.d/syslogd != ///etc/rc.d/syslogd
	///etc/rc.d/veriexec does not exist
	/usr/src/etc/rc.d/virecover != ///etc/rc.d/virecover
	/usr/src/etc/rc.d/wdogctl != ///etc/rc.d/wdogctl
	///etc/rc.d/wsmoused does not exist
ssh check:
	/usr/src/crypto/dist/ssh/moduli != ///etc/moduli
wscons check:
makedev check:
	/tmp/_postinstall.5151.0/MAKEDEV != ///dev/MAKEDEV
postfix check:
	/usr/src/gnu/dist/postfix/conf/postfix-script != ///etc/postfix/postfix-script
	/usr/src/gnu/dist/postfix/conf/post-install != ///etc/postfix/post-install
	/usr/src/gnu/dist/postfix/conf/postfix-files != ///etc/postfix/postfix-files
obsolete check:
	Remove obsolete file ///var/games/atc_scores
(...snip...)
	Remove obsolete file ///usr/bin/grohtml
	Remove obsolete file ///dev/mms0
	Remove obsolete file ///dev/lms0
sendmail check:
	sendmail_suidroot variable not set (assuming ``no'')
	///usr/libexec/sendmail/sendmail binary has wrong owner/mode
	Version of ///etc/mail/sendmail.cf is 9, should be 10
	///etc/mail/submit.cf is missing
	Client queue /var/spool/clientmqueue has wrong owner/mode
postinstall checks passed: etc_release wscons
postinstall checks failed: postinstall defaults mtree gid uid periodic rc ssh makedev postfix obsolete sendmail
To fix, run:
    /usr/src/etc/postinstall -s /usr/src -d // fix postinstall defaults mtree gid uid periodic rc ssh makedev postfix obsolete sendmail
   ================================
make installworld started at:  Tue Aug 10 10:12:58 PDT 2004
make installworld finished at: Tue Aug 10 10:15:45 PDT 2004
===> Successful installworld to /
===> build.sh started: Tue Aug 10 10:12:55 PDT 2004
===> build.sh ended:   Tue Aug 10 10:15:45 PDT 2004
===> Summary of results:
	 build.sh command: ./build.sh -O /usr/obj -T /usr/tools install=/
	 build.sh started: Tue Aug 10 10:12:55 PDT 2004
	 MACHINE:          i386
	 MACHINE_ARCH:     i386
	 TOOLDIR path:     /usr/tools
	 DESTDIR path:     /usr/obj/destdir.i386
	 RELEASEDIR path:  /usr/obj/releasedir
	 makewrapper:      /usr/tools/bin/nbmake-i386
	 Updated /usr/tools/bin/nbmake-i386
	 Successful installworld to /
	 build.sh started: Tue Aug 10 10:12:55 PDT 2004
	 build.sh ended:   Tue Aug 10 10:15:45 PDT 2004
===> .


>How-To-Repeat:
install 1.6.1
fetch 2.0_BETA
build kernel, install, reboot
build userland, install, 

# /usr/src/etc/postinstall -s /usr/src -d // fix postinstall defaults mtree gid uid periodic rc ssh makedev postfix obsolete sendmail
 
perform manual fixes.

# /usr/src/etc/postinstall -s /usr/src -d / fix sendmail


>Fix:
Fixed #1 & #2 manually.  I believe these fixes should be automatic.

#3 I haven't fixed.  I believe this fix should be automatic.

Didn't see anything in UPDATING to indicate fix for sendmail.cf
other than obscure note @ 20030324.

>Release-Note:
>Audit-Trail:
>Unformatted: