summaryrefslogtreecommitdiff
path: root/helpers/lh_chroot_dpkg
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2009-12-21 14:33:03 +0100
committerDaniel Baumann <daniel@debian.org>2011-03-09 19:17:03 +0100
commitc0f2a41c8e9da23a8f17dc34c9cfea2e2a9cb358 (patch)
tree6110250e2bcf575569b759b06cb0a0be66d0b6e9 /helpers/lh_chroot_dpkg
parent12c80951c8c4bfc89aa79c1e6167ce8299bc75c6 (diff)
downloadlive-build-c0f2a41c8e9da23a8f17dc34c9cfea2e2a9cb358.zip
live-build-c0f2a41c8e9da23a8f17dc34c9cfea2e2a9cb358.tar.gz
Ensure that precached-chroots are prepared as well.
Diffstat (limited to 'helpers/lh_chroot_dpkg')
-rwxr-xr-xhelpers/lh_chroot_dpkg5
1 files changed, 4 insertions, 1 deletions
diff --git a/helpers/lh_chroot_dpkg b/helpers/lh_chroot_dpkg
index 7fd6e67..bf2950a 100755
--- a/helpers/lh_chroot_dpkg
+++ b/helpers/lh_chroot_dpkg
@@ -66,7 +66,10 @@ EOF
Create_lockfile .lock
# Restore start-stop-daemon program
- mv chroot/sbin/start-stop-daemon.orig chroot/sbin/start-stop-daemon
+ if [ -e chroot/sbin/start-stop-daemon.orig ]
+ then
+ mv chroot/sbin/start-stop-daemon.orig chroot/sbin/start-stop-daemon
+ fi
# Removing stage file
rm -f .stage/chroot_dpkg