From: Thomas Veerman Date: Tue, 19 Jun 2012 16:07:40 +0000 (+0000) Subject: setup: copy boot.cfg.default to /boot.cfg X-Git-Tag: v3.2.1~476 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/index.html?a=commitdiff_plain;h=305dacf6eaad8afd6db421bd5c9d0f3aadae1462;p=minix.git setup: copy boot.cfg.default to /boot.cfg This way the setup stays in sync with the source tree. --- diff --git a/commands/setup/setup.sh b/commands/setup/setup.sh index 24b7a50d4..1e50a64a8 100644 --- a/commands/setup/setup.sh +++ b/commands/setup/setup.sh @@ -739,25 +739,18 @@ $fshome" test -n "$keymap" && cp -p "/usr/lib/keymaps/$keymap.map" /mnt/etc/keymap # Make bootable. - # XXX we have to use "-f" here, because installboot worries about BPB, which - # we don't have... - installboot_nbsd -f /dev/$primary /usr/mdec/bootxx_minixfs3 >/dev/null || exit - cat >/mnt/boot.cfg </dev/null || exit # Unmount the new root. -mount /dev/$usr /mnt >/dev/null || exit - -pfile="/mnt/src/tools/fdbootparams" +mount /dev/$usr /mnt/usr >/dev/null || exit +# XXX we have to use "-f" here, because installboot worries about BPB, which +# we don't have... +installboot_nbsd -f /dev/$primary /usr/mdec/bootxx_minixfs3 >/dev/null || exit +cp /mnt/usr/src/etc/boot.cfg.default /mnt/boot.cfg +chroot /mnt update_bootcfg + +pfile="/mnt/usr/src/tools/fdbootparams" echo "rootdev=$root; ramimagedev=$root; save" >$pfile # Save name of CD drive -cddrive="`mount | grep usr | awk '{ print $1 }' | sed 's/p.*//'`" -echo "cddrive=$cddrive" >>/mnt/etc/rc.package +cddrive="`mount | grep /usr | awk '{ print $1 }' | sed 's/p.*//'`" +echo "cddrive=$cddrive" >>/mnt/usr/etc/rc.package bios="`echo $primary | sed -e 's/d./dX/g' -e 's/c.//g'`" @@ -777,18 +770,13 @@ then if mount /dev/$home /home 2>/dev/null fi echo "Saving random data.." -dd if=/dev/random of=/mnt/adm/random.dat bs=1024 count=1 - -umount /dev/$usr >/dev/null || exit +dd if=/dev/random of=/mnt/usr/adm/random.dat bs=1024 count=1 # Networking. echo "" echo " --- Step 8: Select your Ethernet chip ---------------------------------" echo "" -mount /dev/$root /mnt >/dev/null || exit -mount /dev/$usr /mnt/usr >/dev/null || exit - /bin/netconf -p /mnt || echo FAILED TO CONFIGURE NETWORK umount /dev/$usr && echo Unmounted $usr