Subject: install/15004: sysinst generated scripts are not OK
To: None <gnats-bugs@gnats.netbsd.org>
From: None <juergent@mpimf-heidelberg.mpg.de>
List: netbsd-bugs
Date: 12/19/2001 13:55:02
>Number: 15004
>Category: install
>Synopsis: sysinst generated scripts are not OK
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: install-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Dec 19 13:55:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator: Juergen Tritthardt
>Release: NetBSD-1.5.2/i386
>Organization:
MPG
>Environment:
NetBSD metis 1.5.2 NetBSD 1.5.2 (GENERIC) #3: Sat Aug 18 23:37:05 CEST 2001 he@hamster.urc.uninett.no:/usr/src/sys/arch/i386/compile/GENERIC i386
>Description:
The sysinst.sh script genereated by sysinst I got after install wasn't functional.
The first errors seems to be a missing EOF before /sbin/ifconfig lo0 127.0.0.1
Another problem seem to be the lines after /sbin/newfs /dev/rsd1g:
wheel:*:0:root
daemon:*:1:daemon
kmem:*:2:root
...
There was also a problem with fetching comp.tgz but by looking at the script I don't understand why.
Because of the too small / partition of the install system I coudln't generate a sysinst.log file so I will explain which steps I made:
After booting with boot1.fs and boot2.fs I switched on scripting and configured the network.
I accepted the sysinst disk values and configured the dual boot option. No changes to the W98 and the NetBSD part of the disk.
I didn't change the NetBSD partitions (slices) of the disk.
Then I made a ftp installation from ftp.netbsd.org, adjusted the timezone and gave in a root password.
Here is the script a got:
#!/bin/sh
# Script started at: Mon Dec 10 19:26:17 2001
cat <<EOF >/etc/resolv.conf
;
; BIND data file
; Created by NetBSD sysinst on Mon Dec 10 19:27:41 2001
;
nameserver 149.217.50.120
search mpimf-heidelberg.mpg.de
/sbin/ifconfig lo0 127.0.0.1
/sbin/ifconfig ep1 media 10baseT
/sbin/ifconfig ep1 inet 149.217.52.141 netmask 255.255.248.1
/sbin/route -n flush -inet
/sbin/route -n add default 149.217.48.1
/sbin/ping -v -c 5 -w 5 -o -n 149.217.50.120
/sbin/ping -v -c 5 -w 5 -o -n 149.217.48.1
cat <<EOF >/etc/resolv.conf
;
; BIND data file
; Created by NetBSD sysinst on Mon Dec 10 19:29:25 2001
;
nameserver 149.217.50.120
search mpimf-heidelberg.mpg.de
/sbin/ifconfig lo0 127.0.0.1
/sbin/ifconfig ep1 media 10baseT
/sbin/ifconfig ep1 inet 149.217.52.141 netmask 255.255.48.0
/sbin/route -n flush -inet
wheel:*:0:root
daemon:*:1:daemon
kmem:*:2:root
sys:*:3:root
tty:*:4:root
operator:*:5:root
mail:*:6:
bin:*:7:
news:*:8:
wsrc:*:9:
maildrop:*:11:
postfix:*:12:
games:*:13:
staff:*:20:root
guest:*:31:root
nobody:*:39:
utmp:*:45:
ingres:*:74:ingres
users:*:100:
dialer:*:117:
nogroup:*:32766:
/sbin/route -n add default 149.217.48.1
0:
dialer:*:117:
nogroup:*:32766:
/sbin/route -n add default 149.217.48.1 /sbin/ping -v -c 5 -w 5 -o -n 149.217.50.120
/sbin/ping -v -c 5 -w 5 -o -n 149.217.48.1
disklabel -w -r wd0 mydisk
/sbin/newfs /dev/rwd0a
/sbin/mount -v -o async /dev/wd0a /mnt/
/sbin/newfs /dev/rwd0e
/bin/mkdir -p /mnt/usr
/sbin/mount -v -o async /dev/wd0e /mnt/usr
/bin/mkdir -p /mnt/etc
cat <<EOF >/mnt/etc/fstab
/dev/wd0a / ffs rw 1 1
/dev/wd0b none swap sw 0 0
/dev/wd0e /usr ffs rw 1 2
/kern /kern kernfs rw
EOF
/dev/wd0a / ffs rw 1 1
/dev/wd0b none swap sw 0 0
/dev/wd0e /usr ffs rw 1 2
/kern /kern kernfs rw
6:
bin:*:7:
news:*:8:
wsrc:*:9:
maildrop:*:11:
postfix:*:12:
games:*:13:
staff:*:20:root
guest:*:31:root
nobody:*:39:
utmp:*:45:
ingres:*:74:ingres
users:*:100:
dialer:*:117:
nogroup:*:32766:
/bin/mkdir -p /mnt/kern
0:
dialer:*:117:
nogroup:*:32766:
/bin/mkdir -p /mnt/kern /usr/mdec/installboot -v /usr/mdec/biosboot.sym /dev/rwd0a
mkdir /mnt2
chmod 755 /mnt2
/bin/mkdir -p /mnt/usr/INSTALL
mkdir /mnt2
chmod 755 /mnt2
cd /mnt/usr/INSTALL
/usr/bin/ftp -a ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-1.5.2/i386/binary/sets/kern.tgz
/usr/bin/ftp -a ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-1.5.2/i386/binary/sets/base.tgz
/usr/bin/ftp -a ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-1.5.2/i386/binary/sets/etc.tgz
/usr/bin/ftp -a ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-1.5.2/i386/binary/sets/comp.tgz
/usr/bin/ftp -a ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-1.5.2/i386/binary/sets/games.tgz
/usr/bin/ftp -a ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-1.5.2/i386/binary/sets/man.tgz
/usr/bin/ftp -a ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-1.5.2/i386/binary/sets/misc.tgz
/usr/bin/ftp -a ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-1.5.2/i386/binary/sets/text.tgz
/usr/bin/ftp -a ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-1.5.2/i386/binary/sets/xbase.tgz
/usr/bin/ftp -a ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-1.5.2/i386/binary/sets/xfont.tgz
/usr/bin/ftp -a ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-1.5.2/i386/binary/sets/xserver.tgz
/usr/bin/ftp -a ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-1.5.2/i386/binary/sets/xcontrib.tgz
/usr/bin/ftp -a ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-1.5.2/i386/binary/sets/xcomp.tgz
/usr/bin/ftp -a ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-1.5.2/i386/binary/sets/xmisc.tgz
cd /mnt/
pax -zrpe -f /mnt/usr/INSTALL/kern.tgz
cd /mnt/
pax -zrpe -f /mnt/usr/INSTALL/base.tgz
cd /mnt/
pax -zrpe -f /mnt/usr/INSTALL/etc.tgz
cd /mnt/
pax -zrpe -f /mnt/usr/INSTALL/comp.tgz
cd /mnt/
pax -zrpe -f /mnt/usr/INSTALL/games.tgz
rmdir /mnt/usr/share/man/man5/i386
rmdir /mnt/usr/share/man/man3/i386
rmdir /mnt/usr/share/man/man1/i386
rmdir /mnt/usr/share/man/cat5/i386
rmdir /mnt/usr/share/man/cat3/i386
rmdir /mnt/usr/share/man/cat1/i386
cd /mnt/
pax -zrpe -f /mnt/usr/INSTALL/man.tgz
cd /mnt/
pax -zrpe -f /mnt/usr/INSTALL/misc.tgz
cd /mnt/
pax -zrpe -f /mnt/usr/INSTALL/text.tgz
cd /mnt/
pax -zrpe -f /mnt/usr/INSTALL/xbase.tgz
cd /mnt/
pax -zrpe -f /mnt/usr/INSTALL/xfont.tgz
cd /mnt/
pax -zrpe -f /mnt/usr/INSTALL/xserver.tgz
cd /mnt/
pax -zrpe -f /mnt/usr/INSTALL/xcontrib.tgz
cd /mnt/
pax -zrpe -f /mnt/usr/INSTALL/xcomp.tgz
cd /mnt/
wheel:*:0:root
daemon:*:1:daemon
kmem:*:2:root
sys:*:3:root
tty:*:4:root
operator:*:5:root
mail:*:6:
bin:*:7:
news:*:8:
wsrc:*:9:
maildrop:*:11:
postfix:*:12:
games:*:13:
staff:*:20:root
guest:*:31:root
nobody:*:39:
utmp:*:45:
ingres:*:74:ingres
users:*:100:
dialer:*:117:
nogroup:*:32766:
pax -zrpe -f /mnt/usr/INSTALL/xmisc.tgz
0:
dialer:*:117:
nogroup:*:32766:
pax -zrpe -f /mnt/usr/INSTALL/xmisc.tgz /bin/mkdir -p /mnt/dev
cd /mnt/dev
/bin/sh MAKEDEV all
echo "metis" >/mnt/etc/myname
/bin/cp /etc/resolv.conf /mnt/etc/resolv.conf
echo "metis" >/mnt/etc/myname
cat <<EOF >>/mnt/etc/hosts
#
# Added by NetBSD sysinst
#
127.0.0.1 localhost
149.217.52.141 metis.mpimf-heidelberg.mpg.de metis
EOF
echo "149.217.52.141 netmask 255.255.48.0 media 10baseT">/mnt/etc/ifconfig.ep1
echo "149.217.48.1" >/mnt/etc/mygate
/bin/rm -rf /mnt/usr/INSTALL
passwd -l root
if [ $? != 0 ]; then echo "/mnt/netbsd does not exist!"; fi
if [ $? != 0 ]; then echo "/mnt/etc does not exist!"; fi
if [ $? != 0 ]; then echo "/mnt/etc/fstab does not exist!"; fi
if [ $? != 0 ]; then echo "/mnt/sbin/init does not exist!"; fi
if [ $? != 0 ]; then echo "/mnt/bin/sh does not exist!"; fi
if [ $? != 0 ]; then echo "/mnt/etc/rc does not exist!"; fi
if [ $? != 0 ]; then echo "/mnt/etc/rc.subr does not exist!"; fi
if [ $? != 0 ]; then echo "/mnt/etc/rc.conf does not exist!"; fi
if [ $? != 0 ]; then echo "/mnt/dev does not exist!"; fi
if [ $? != 0 ]; then echo "/mnt/dev/console does not exist!"; fi
if [ $? != 0 ]; then echo "/mnt/etc/fstab does not exist!"; fi
if [ $? != 0 ]; then echo "/mnt/sbin/fsck does not exist!"; fi
if [ $? != 0 ]; then echo "/mnt/sbin/fsck_ffs does not exist!"; fi
if [ $? != 0 ]; then echo "/mnt/sbin/mount does not exist!"; fi
if [ $? != 0 ]; then echo "/mnt/sbin/mount_ffs does not exist!"; fi
if [ $? != 0 ]; then echo "/mnt/sbin/mount_nfs does not exist!"; fi
sed -e 's/rc_configured=NO/rc_configured=YES/' < /mnt/etc/rc.conf > /mnt/etc/rc.conf.install
echo wscons=YES >> /mnt/etc/rc.conf.install
mv -f /mnt/etc/rc.conf.install /mnt/etc/rc.conf
if [ $? != 0 ]; then echo "/mnt/netbsd does not exist!"; fi
if [ $? != 0 ]; then echo "/mnt/etc does not exist!"; fi
if [ $? != 0 ]; then echo "/mnt/etc/fstab does not exist!"; fi
if [ $? != 0 ]; then echo "/mnt/sbin/init does not exist!"; fi
if [ $? != 0 ]; then echo "/mnt/bin/sh does not exist!"; fi
if [ $? != 0 ]; then echo "/mnt/etc/rc does not exist!"; fi
if [ $? != 0 ]; then echo "/mnt/etc/rc.subr does not exist!"; fi
if [ $? != 0 ]; then echo "/mnt/etc/rc.conf does not exist!"; fi
if [ $? != 0 ]; then echo "/mnt/dev does not exist!"; fi
if [ $? != 0 ]; then echo "/mnt/dev/console does not exist!"; fi
if [ $? != 0 ]; then echo "/mnt/etc/fstab does not exist!"; fi
if [ $? != 0 ]; then echo "/mnt/sbin/fsck does not exist!"; fi
if [ $? != 0 ]; then echo "/mnt/sbin/fsck_ffs does not exist!"; fi
if [ $? != 0 ]; then echo "/mnt/sbin/mount does not exist!"; fi
if [ $? != 0 ]; then echo "/mnt/sbin/mount_ffs does not exist!"; fi
if [ $? != 0 ]; then echo "/mnt/sbin/mount_nfs does not exist!"; fi
sed -e 's/rc_configured=NO/rc_configured=YES/' < /mnt/etc/rc.conf > /mnt/etc/rc.conf.install
echo wscons=YES >> /mnt/etc/rc.conf.install
sed -e '/^ttyE/s/off/on/' < /mnt/etc/ttys > /mnt/etc/ttys.install
mv -f /mnt/etc/ttys.install /mnt/etc/ttys
if [ $? != 0 ]; then echo "/mnt/netbsd does not exist!"; fi
if [ $? != 0 ]; then echo "/mnt/etc does not exist!"; fi
if [ $? != 0 ]; then echo "/mnt/etc/fstab does not exist!"; fi
if [ $? != 0 ]; then echo "/mnt/sbin/init does not exist!"; fi
if [ $? != 0 ]; then echo "/mnt/bin/sh does not exist!"; fi
if [ $? != 0 ]; then echo "/mnt/etc/rc does not exist!"; fi
if [ $? != 0 ]; then echo "/mnt/etc/rc.subr does not exist!"; fi
if [ $? != 0 ]; then echo "/mnt/etc/rc.conf does not exist!"; fi
if [ $? != 0 ]; then echo "/mnt/dev does not exist!"; fi
if [ $? != 0 ]; then echo "/mnt/dev/console does not exist!"; fi
if [ $? != 0 ]; then echo "/mnt/etc/fstab does not exist!"; fi
if [ $? != 0 ]; then echo "/mnt/sbin/fsck does not exist!"; fi
if [ $? != 0 ]; then echo "/mnt/sbin/fsck_ffs does not exist!"; fi
if [ $? != 0 ]; then echo "/mnt/sbin/mount does not exist!"; fi
if [ $? != 0 ]; then echo "/mnt/sbin/mount_ffs does not exist!"; fi
if [ $? != 0 ]; then echo "/mnt/sbin/mount_nfs does not exist!"; fi
sed -e 's/rc_configured=NO/rc_configured=YES/' < /mnt/etc/rc.conf > /mnt/etc/rc.conf.install
echo wscons=YES >> /mnt/etc/rc.conf.install
sed -e '/^ttyE/s/off/on/' < /mnt/etc/ttys > /mnt/etc/ttys.install
rm -f /mnt/sysinst
if [ $? != 0 ]; then echo "/mnt/netbsd does not exist!"; fi
if [ $? != 0 ]; then echo "/mnt/etc does not exist!"; fi
if [ $? != 0 ]; then echo "/mnt/etc/fstab does not exist!"; fi
if [ $? != 0 ]; then echo "/mnt/sbin/init does not exist!"; fi
if [ $? != 0 ]; then echo "/mnt/bin/sh does not exist!"; fi
if [ $? != 0 ]; then echo "/mnt/etc/rc does not exist!"; fi
if [ $? != 0 ]; then echo "/mnt/etc/rc.subr does not exist!"; fi
if [ $? != 0 ]; then echo "/mnt/etc/rc.conf does not exist!"; fi
if [ $? != 0 ]; then echo "/mnt/dev does not exist!"; fi
if [ $? != 0 ]; then echo "/mnt/dev/console does not exist!"; fi
if [ $? != 0 ]; then echo "/mnt/etc/fstab does not exist!"; fi
if [ $? != 0 ]; then echo "/mnt/sbin/fsck does not exist!"; fi
if [ $? != 0 ]; then echo "/mnt/sbin/fsck_ffs does not exist!"; fi
if [ $? != 0 ]; then echo "/mnt/sbin/mount does not exist!"; fi
if [ $? != 0 ]; then echo "/mnt/sbin/mount_ffs does not exist!"; fi
if [ $? != 0 ]; then echo "/mnt/sbin/mount_nfs does not exist!"; fi
sed -e 's/rc_configured=NO/rc_configured=YES/' < /mnt/etc/rc.conf > /mnt/etc/rc.conf.install
echo wscons=YES >> /mnt/etc/rc.conf.install
sed -e '/^ttyE/s/off/on/' < /mnt/etc/ttys > /mnt/etc/ttys.install
rm -f /mnt/.termcap
if [ $? != 0 ]; then echo "/mnt/netbsd does not exist!"; fi
if [ $? != 0 ]; then echo "/mnt/etc does not exist!"; fi
if [ $? != 0 ]; then echo "/mnt/etc/fstab does not exist!"; fi
if [ $? != 0 ]; then echo "/mnt/sbin/init does not exist!"; fi
if [ $? != 0 ]; then echo "/mnt/bin/sh does not exist!"; fi
if [ $? != 0 ]; then echo "/mnt/etc/rc does not exist!"; fi
if [ $? != 0 ]; then echo "/mnt/etc/rc.subr does not exist!"; fi
if [ $? != 0 ]; then echo "/mnt/etc/rc.conf does not exist!"; fi
if [ $? != 0 ]; then echo "/mnt/dev does not exist!"; fi
if [ $? != 0 ]; then echo "/mnt/dev/console does not exist!"; fi
if [ $? != 0 ]; then echo "/mnt/etc/fstab does not exist!"; fi
if [ $? != 0 ]; then echo "/mnt/sbin/fsck does not exist!"; fi
if [ $? != 0 ]; then echo "/mnt/sbin/fsck_ffs does not exist!"; fi
if [ $? != 0 ]; then echo "/mnt/sbin/mount does not exist!"; fi
if [ $? != 0 ]; then echo "/mnt/sbin/mount_ffs does not exist!"; fi
if [ $? != 0 ]; then echo "/mnt/sbin/mount_nfs does not exist!"; fi
sed -e 's/rc_configured=NO/rc_configured=YES/' < /mnt/etc/rc.conf > /mnt/etc/rc.conf.install
echo wscons=YES >> /mnt/etc/rc.conf.install
sed -e '/^ttyE/s/off/on/' < /mnt/etc/ttys > /mnt/etc/ttys.install
rm -f /mnt/.profile
if [ $? != 0 ]; then echo "/mnt/netbsd does not exist!"; fi
if [ $? != 0 ]; then echo "/mnt/etc does not exist!"; fi
if [ $? != 0 ]; then echo "/mnt/etc/fstab does not exist!"; fi
if [ $? != 0 ]; then echo "/mnt/sbin/init does not exist!"; fi
if [ $? != 0 ]; then echo "/mnt/bin/sh does not exist!"; fi
if [ $? != 0 ]; then echo "/mnt/etc/rc does not exist!"; fi
if [ $? != 0 ]; then echo "/mnt/etc/rc.subr does not exist!"; fi
if [ $? != 0 ]; then echo "/mnt/etc/rc.conf does not exist!"; fi
if [ $? != 0 ]; then echo "/mnt/dev does not exist!"; fi
if [ $? != 0 ]; then echo
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: