beinstall.sh (0269ae4c19ad779b43b0d6e2416ac7386945d692) beinstall.sh (1655b2314e0e155ce1154b804f1abe05fceedc41)
1#!/bin/sh
2#
3# Copyright (c) 2016 Will Andrews
4# All rights reserved.
5#
6# Redistribution and use in source and binary forms, with or without
7# modification, are permitted provided that the following conditions
8# are met:

--- 209 unchanged lines hidden (view full) ---

218fi
219
220# Mount the source and object tree within the BE in order to account for any
221# changes applied by the pre-installworld updater. Cleanup any directories
222# created if they didn't exist previously.
223create_be_dirs "${srcdir}" "${objdir}" || errx "Unable to create BE dirs"
224mount -t nullfs "${srcdir}" "${BE_MNTPT}${srcdir}" || errx "Unable to mount src"
225mount -t nullfs "${objdir}" "${BE_MNTPT}${objdir}" || errx "Unable to mount obj"
1#!/bin/sh
2#
3# Copyright (c) 2016 Will Andrews
4# All rights reserved.
5#
6# Redistribution and use in source and binary forms, with or without
7# modification, are permitted provided that the following conditions
8# are met:

--- 209 unchanged lines hidden (view full) ---

218fi
219
220# Mount the source and object tree within the BE in order to account for any
221# changes applied by the pre-installworld updater. Cleanup any directories
222# created if they didn't exist previously.
223create_be_dirs "${srcdir}" "${objdir}" || errx "Unable to create BE dirs"
224mount -t nullfs "${srcdir}" "${BE_MNTPT}${srcdir}" || errx "Unable to mount src"
225mount -t nullfs "${objdir}" "${BE_MNTPT}${objdir}" || errx "Unable to mount obj"
226mount -t devfs devfs "${BE_MNTPT}/dev" || errx "Unable to mount devfs"
226
227chroot ${BE_MNTPT} make "$@" -C ${srcdir} installworld || \
228 errx "Installworld failed!"
229
230if [ -n "${CONFIG_UPDATER}" ]; then
231 "update_${CONFIG_UPDATER}"
232 [ $? -ne 0 ] && errx "${CONFIG_UPDATER} (post-world) failed!"
233fi

--- 25 unchanged lines hidden ---
227
228chroot ${BE_MNTPT} make "$@" -C ${srcdir} installworld || \
229 errx "Installworld failed!"
230
231if [ -n "${CONFIG_UPDATER}" ]; then
232 "update_${CONFIG_UPDATER}"
233 [ $? -ne 0 ] && errx "${CONFIG_UPDATER} (post-world) failed!"
234fi

--- 25 unchanged lines hidden ---