Changeset View
Changeset View
Standalone View
Standalone View
usr.sbin/bsdinstall/scripts/script
Show First 20 Lines • Show All 156 Lines • ▼ Show 20 Lines | |||||
if [ ! -f $BSDINSTALL_CHROOT/etc/resolv.conf -a -f /etc/resolv.conf ]; then | if [ ! -f $BSDINSTALL_CHROOT/etc/resolv.conf -a -f /etc/resolv.conf ]; then | ||||
cp /etc/resolv.conf $BSDINSTALL_CHROOT/etc/resolv.conf | cp /etc/resolv.conf $BSDINSTALL_CHROOT/etc/resolv.conf | ||||
fi | fi | ||||
# Run post-install script | # Run post-install script | ||||
if [ -f $TMPDIR/bsdinstall-installscript-ab ]; then | if [ -f $TMPDIR/bsdinstall-installscript-ab ]; then | ||||
cp $TMPDIR/bsdinstall-installscript-ab $BSDINSTALL_CHROOT/tmp/installscript | cp $TMPDIR/bsdinstall-installscript-ab $BSDINSTALL_CHROOT/tmp/installscript | ||||
chmod a+x $BSDINSTALL_CHROOT/tmp/installscript | chmod a+x $BSDINSTALL_CHROOT/tmp/installscript | ||||
mount -t devfs devfs "$BSDINSTALL_CHROOT/dev" | |||||
chroot $BSDINSTALL_CHROOT /tmp/installscript $@ 2>&1 | chroot $BSDINSTALL_CHROOT /tmp/installscript $@ 2>&1 | ||||
umount "$BSDINSTALL_CHROOT/dev" | |||||
rm $BSDINSTALL_CHROOT/tmp/installscript | rm $BSDINSTALL_CHROOT/tmp/installscript | ||||
fi | fi | ||||
bsdinstall entropy | bsdinstall entropy | ||||
if [ "$ZFSBOOT_DISKS" ]; then | if [ "$ZFSBOOT_DISKS" ]; then | ||||
zpool export $ZFSBOOT_POOL_NAME | zpool export $ZFSBOOT_POOL_NAME | ||||
fi | fi | ||||
bsdinstall umount | bsdinstall umount | ||||
Show All 9 Lines |