vmimage.subr (416ba5c74546f32a993436a99516d35008e9f384) vmimage.subr (91c42fff775376cb943562a474e3a2269a0055de)
1#!/bin/sh
2#
3# $FreeBSD$
4#
5#
6# Common functions for virtual machine image build scripts.
7#
8

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

103 tar -cf- -C ${DESTDIR}/old . | tar -xUf- -C ${DESTDIR}/new
104
105 umount_loop /dev/${mdold}
106 rmdir ${DESTDIR}/old
107 mdconfig -d -u ${mdold}
108
109 umount_loop /dev/${mdnew}
110 rmdir ${DESTDIR}/new
1#!/bin/sh
2#
3# $FreeBSD$
4#
5#
6# Common functions for virtual machine image build scripts.
7#
8

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

103 tar -cf- -C ${DESTDIR}/old . | tar -xUf- -C ${DESTDIR}/new
104
105 umount_loop /dev/${mdold}
106 rmdir ${DESTDIR}/old
107 mdconfig -d -u ${mdold}
108
109 umount_loop /dev/${mdnew}
110 rmdir ${DESTDIR}/new
111 tunefs -j enable /dev/${mdnew}
111 tunefs -n enable /dev/${mdnew}
112 mdconfig -d -u ${mdnew}
113 mv ${VMBASE}.tmp ${VMBASE}
114}
115
116vm_install_base() {
117 # Installs the FreeBSD userland/kernel to the virtual machine disk.
118
119 cd ${WORLDDIR} && \

--- 115 unchanged lines hidden ---
112 mdconfig -d -u ${mdnew}
113 mv ${VMBASE}.tmp ${VMBASE}
114}
115
116vm_install_base() {
117 # Installs the FreeBSD userland/kernel to the virtual machine disk.
118
119 cd ${WORLDDIR} && \

--- 115 unchanged lines hidden ---