diff options
author | Daniel Baumann <daniel@debian.org> | 2009-02-25 09:51:28 +0100 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2011-03-09 19:09:42 +0100 |
commit | f73041f2f0905a2bb6ee3b938a9e1fa0fc53a3e6 (patch) | |
tree | 517c37c1229fa05947a3515117c1bbdfd566f3a0 /helpers/lh_binary_rootfs | |
parent | ef9121fc23c6eae86ff359cf429af3b096360075 (diff) | |
download | vyos-live-build-f73041f2f0905a2bb6ee3b938a9e1fa0fc53a3e6.tar.gz vyos-live-build-f73041f2f0905a2bb6ee3b938a9e1fa0fc53a3e6.zip |
Adding initial support for virtual-hdd binary image type.
Diffstat (limited to 'helpers/lh_binary_rootfs')
-rwxr-xr-x | helpers/lh_binary_rootfs | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/helpers/lh_binary_rootfs b/helpers/lh_binary_rootfs index 2099d3d31..9040f8710 100755 --- a/helpers/lh_binary_rootfs +++ b/helpers/lh_binary_rootfs @@ -299,6 +299,25 @@ case "${LH_CHROOT_FILESYSTEM}" in # Removing depends Remove_package ;; + + none) + if [ -d binary ] + then + rm -rf binary + fi + + case "${LH_CHROOT_BUILD}" in + enabled) + mv chroot/chroot binary + ;; + + disabled) + Echo_message "This may take a while." + cp -a chroot binary + ;; + esac + ;; + esac for STAGE in ${LH_CACHE_STAGES} @@ -309,7 +328,10 @@ do mkdir -p cache/stages_rootfs - ${LH_ROOT_COMMAND} cp -a binary/"${INITFS}"/filesystem.* cache/stages_rootfs + if [ "${LH_CHROOT_FILESYSTEM}" != "none" ] + then + ${LH_ROOT_COMMAND} cp -a binary/"${INITFS}"/filesystem.* cache/stages_rootfs + fi if [ -n "${LH_ROOT_COMMAND}" ] then |