[1792] in NetBSD-Development
Automated maintenance of the netbsd-install NFS stuff
daemon@ATHENA.MIT.EDU (Greg Hudson)
Mon Sep 21 15:34:26 1998
Date: Mon, 21 Sep 1998 15:34:06 -0400
From: Greg Hudson <ghudson@MIT.EDU>
To: rtfm-maintainers@MIT.EDU
Cc: netbsd-dev@MIT.EDU
Okay, I'm not quite ready to set up automated maintenance of the NFS
packs for NetBSD-Athena, but when I do, here's how I expect to go
about it.
* Add to /etc/nightly_jobs.conf:
$name = "NetBSD NFS install update"; $important = 0;
su ris -c /u3/netbsd-install/update
* I expect to give an AFS home under RCS for the update script
and rconf file in /mit/netbsd/dev/nfs-install, with a README
explaining how to set things up from scratch.
* The update script will look like (I wrote this in the mail
buffer; I'll test it before installing the job, naturally).
#!/bin/sh
# $Header$
nfsroot=/u3/netbsd-install
afssys=/afs/sipb.mit.edu/system/i386_nbsd1
nfssys=$nfsroot/sipb.mit.edu/system/i386_nbsd1
opts="-q -nosrcrules -nodstrules -a $nfsroot/rconf"
# synctree generates gratuitous stdout we don't care about.
exec > /dev/null
# Update packs. The synctree of os-1.3.2 routinely fails on the
# zoneinfo files since that directory is mode 555, so discard error
# output for the os packs.
synctree $opts -s $afssys/install-1.3.2 -d $nfssys/install-1.3.2
synctree $opts -s $afssys/os-1.3.2 -d $nfssys/os-1.3.2 2>/dev/null
synctree $opts -s $afssys/srvd-8.2 -d $nfssys/srvd-8.2
# Update CellServDB and SuidCells.
cd $nfsroot/system
rm -f CellServDB.new SuidCells.new
cp -p /afs/athena.mit.edu/system/CellServDB CellServDB.new
[ -s CellServDB.new ] && mv CellServDB.new CellServDB
cp -p /afs/athena.mit.edu/system/SuidCells SuidCells.new
[ -s SuidCells.new ] && mv SuidCells.new SuidCells