summaryrefslogtreecommitdiff
path: root/helpers/lh_binary_rootfs
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2009-02-25 09:51:28 +0100
committerDaniel Baumann <daniel@debian.org>2011-03-09 19:09:42 +0100
commitf73041f2f0905a2bb6ee3b938a9e1fa0fc53a3e6 (patch)
tree517c37c1229fa05947a3515117c1bbdfd566f3a0 /helpers/lh_binary_rootfs
parentef9121fc23c6eae86ff359cf429af3b096360075 (diff)
downloadlive-build-f73041f2f0905a2bb6ee3b938a9e1fa0fc53a3e6.zip
live-build-f73041f2f0905a2bb6ee3b938a9e1fa0fc53a3e6.tar.gz
Adding initial support for virtual-hdd binary image type.
Diffstat (limited to 'helpers/lh_binary_rootfs')
-rwxr-xr-xhelpers/lh_binary_rootfs24
1 files changed, 23 insertions, 1 deletions
diff --git a/helpers/lh_binary_rootfs b/helpers/lh_binary_rootfs
index 2099d3d..9040f87 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