From f73041f2f0905a2bb6ee3b938a9e1fa0fc53a3e6 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 25 Feb 2009 09:51:28 +0100 Subject: Adding initial support for virtual-hdd binary image type. --- helpers/lh_binary_rootfs | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) (limited to 'helpers/lh_binary_rootfs') 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 -- cgit v1.2.3