Lines Matching +full:qemu +full:- +full:1 +full:- +full:setup

10 . ${scriptdir}/../../tools/boot/install-boot.sh
15 # Platform-specific large-scale setup
30 return 1
34 if [ -c "${DESTDIR}/dev/null" ]; then
44 if [ -n "${NO_ROOT}" ]; then
45 file=$1
46 if [ -f ${DESTDIR}/${file} ]; then
48 mode=${2:-0644}
49 elif [ -d ${DESTDIR}/${file} ]; then
51 mode=${2:-0755}
54 return 1
63 mkdir -p ${DESTDIR}
78 echo FreeBSD-set-$S
79 echo FreeBSD-set-$S-dbg
83 echo FreeBSD-set-lib32
84 echo FreeBSD-set-lib32-dbg
86 echo FreeBSD-set-tests
98 if [ -z "${NOPKGBASE}" ]; then
100 pkg_cmd="${PKG_CMD} --rootdir ${DESTDIR} --repo-conf-dir ${PKGBASE_REPO_DIR}
101 -o ASSUME_ALWAYS_YES=yes -o IGNORE_OSVERSION=yes
102 -o ABI=${PKG_ABI} -o INSTALL_AS_USER=yes "
103 if [ -n "${NO_ROOT}" ]; then
104 pkg_cmd="$pkg_cmd -o METALOG=METALOG"
108 $pkg_cmd install -U -r FreeBSD-base $selected
117 mkdir -p ${DESTDIR}/var/db/etcupdate
118 etcupdate extract -B \
119 -M "TARGET=${TARGET} TARGET_ARCH=${TARGET_ARCH}" \
120 -s ${WORLDDIR} -d ${DESTDIR}/var/db/etcupdate \
121 -L /dev/stdout ${NO_ROOT:+-N}
122 if [ -n "${NO_ROOT}" ]; then
124 sed -n 's,^\.,./var/db/etcupdate/current,p' \
126 env -i LC_COLLATE=C sort >> ${DESTDIR}/METALOG
133 echo "/dev/${ROOTLABEL}/rootfs / ${VMFS} rw,noatime 1 1" \
136 if [ -z "${NOSWAP}" ]; then
143 hostname="$(echo $(uname -o) | tr '[:upper:]' '[:lower:]')"
159 if [ -n "${WITHOUT_QEMU}" ]; then
162 if [ -n "${QEMUSTATIC}" ]; then
163 export EMULATOR=/qemu
167 mkdir -p ${DESTDIR}/dev
168 mount -t devfs devfs ${DESTDIR}/dev
176 # Prototype. When overridden, runs extra post-installworld commands
184 if [ -n "${VM_RC_LIST}" ]; then
190 if [ -z "${VMCONFIG}" -o -c "${VMCONFIG}" ]; then
201 if [ -z "${VM_EXTRA_PACKAGES}" ]; then
204 if [ -n "${NO_ROOT}" ]; then
208 -o ABI=${PKG_ABI} \
209 -o METALOG=${DESTDIR}/METALOG.pkg \
210 -o REPOS_DIR=${PKG_REPOS_DIR} \
211 -o PKG_DBDIR=${DESTDIR}/var/db/pkg \
212 -r ${DESTDIR} \
213 install -y -r ${PKG_REPO_NAME} $pkg
217 -o ABI=${PKG_ABI} \
218 -o REPOS_DIR=${PKG_REPOS_DIR} \
219 -o PKG_DBDIR=${DESTDIR}/var/db/pkg \
220 -r ${DESTDIR} \
224 if [ -n "${WITHOUT_QEMU}" ]; then
229 /usr/sbin/pkg bootstrap -y
232 /usr/sbin/pkg install -y ${p}
256 if [ -n "${WITHOUT_QEMU}" ]; then
260 if ! [ -z "${QEMUSTATIC}" ]; then
261 rm -f ${DESTDIR}/${EMULATOR}
263 rm -f ${DESTDIR}/etc/resolv.conf
269 if [ -n "${NO_ROOT}" ]; then
271 -o ASSUME_ALWAYS_YES=yes \
272 -o INSTALL_AS_USER=yes \
273 -r ${DESTDIR} \
274 clean -y -a
276 if [ -e ${DESTDIR}/usr/local/sbin/pkg ]; then
278 /usr/local/sbin/pkg clean -y -a
288 if [ -f ${DESTDIR}/METALOG.pkg ]; then
292 if [ -n "${NO_ROOT}" ]; then
298 cut -f 1 -d ' ' |
299 sort -u > ${DESTDIR}/METALOG.dirs
300 ( cd ${DESTDIR} && find . -type d ) |
302 comm -23 - ${DESTDIR}/METALOG.dirs > ${DESTDIR}/METALOG.missingdirs
303 if [ -s ${DESTDIR}/METALOG.missingdirs ]; then
311 if [ -z "${NOPKGBASE}" ]; then
315 # (which would simplify no-root installworld as well).
325 env -i LC_COLLATE=C sort -u ${DESTDIR}/METALOG > ${DESTDIR}/METALOG.sorted
331 cd ${DESTDIR} && ${MAKEFS} ${MAKEFSARGS} -o label=rootfs -o version=2 -o softupdates=1 \
335 cd ${DESTDIR} && ${MAKEFS} -t zfs ${MAKEFSARGS} \
336 -o poolname=zroot -o bootfs=zroot/ROOT/default -o rootpath=/ \
337 -o fs=zroot\;mountpoint=none \
338 -o fs=zroot/ROOT\;mountpoint=none \
339 -o fs=zroot/ROOT/default\;mountpoint=/\;canmount=noauto \
340 -o fs=zroot/home\;mountpoint=/home \
341 -o fs=zroot/tmp\;mountpoint=/tmp\;exec=on\;setuid=off \
342 -o fs=zroot/usr\;mountpoint=/usr\;canmount=off \
343 -o fs=zroot/usr/ports\;setuid=off \
344 -o fs=zroot/usr/src \
345 -o fs=zroot/usr/obj \
346 -o fs=zroot/var\;mountpoint=/var\;canmount=off \
347 -o fs=zroot/var/audit\;setuid=off\;exec=off \
348 -o fs=zroot/var/crash\;setuid=off\;exec=off \
349 -o fs=zroot/var/log\;setuid=off\;exec=off \
350 -o fs=zroot/var/mail\;atime=on \
351 -o fs=zroot/var/tmp\;setuid=off \
356 exit 1
362 DIR=$1
366 i=$(( $i + 1 ))
367 if [ $i -ge 10 ]; then
371 return 1
373 sleep 1
382 if [ -z "${NOSWAP}" ]; then
383 SWAPOPT="-p freebsd-swap/swapfs::${SWAPSIZE}"
386 if [ -n "${VM_BOOTPARTSOFFSET}" ]; then
390 if [ -n "${CONFIG_DRIVE}" ]; then
391 CONFIG_DRIVE="-p freebsd/config-drive::${CONFIG_DRIVE_SIZE}"
396 FSPARTTYPE=freebsd-ufs
400 FSPARTTYPE=freebsd-zfs
405 return 1
414 make -C ${WORLDDIR}/stand -V .OBJDIR)"
416 MAKEFSARGS="-s ${VMSIZE} -D"
421 BOOTPARTS="-b ${BOOTFILES}/i386/pmbr/pmbr \
422 -p freebsd-boot/bootfs:=${BOOTFILES}/${X86GPTBOOTFILE}${BOOTPARTSOFFSET}"
423 ROOTFSPART="-p ${FSPARTTYPE}/rootfs:=${VMBASE}"
424 MAKEFSARGS="$MAKEFSARGS -B little"
429 ROOTFSPART="-p ${FSPARTTYPE}/rootfs:=${VMBASE}"
430 MAKEFSARGS="$MAKEFSARGS -B little"
434 BOOTPARTS="-p prepboot:=${BOOTFILES}/powerpc/boot1.chrp/boot1.elf -a 1"
435 ROOTFSPART="-p freebsd:=${VMBASE}"
437 MAKEFSARGS="$MAKEFSARGS -B little"
439 MAKEFSARGS="$MAKEFSARGS -B big"
444 exit 1
453 if [ -z "${BOOTPARTS}" ]; then
456 BOOTPARTS="${BOOTPARTS} -p efi/efiboot0:=${espfilename}${espsuffix}"
459 mkdir -p ${DESTDIR}/boot/efi
473 ${MKIMG} -s ${PARTSCHEME} -f ${VMFORMAT} \
478 -o ${VMIMAGE}