summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2010-09-30 17:30:23 +0200
committerDaniel Baumann <daniel@debian.org>2010-09-30 17:30:23 +0200
commit977fe45cfbdfc33ca96e2aa8ec4c0c626cbceac2 (patch)
tree422eb5c4f404b40361f97943c4d29fdcf9e26897
parent4402df155c24fd37e0c8091920154e642e1a8e2a (diff)
downloadvyos-live-build-977fe45cfbdfc33ca96e2aa8ec4c0c626cbceac2.tar.gz
vyos-live-build-977fe45cfbdfc33ca96e2aa8ec4c0c626cbceac2.zip
Fixing squashfs.sort location with --build-with-chroot false.
-rwxr-xr-xscripts/build/lb_binary_rootfs11
1 files changed, 10 insertions, 1 deletions
diff --git a/scripts/build/lb_binary_rootfs b/scripts/build/lb_binary_rootfs
index 483fdfb86..173c5cc3f 100755
--- a/scripts/build/lb_binary_rootfs
+++ b/scripts/build/lb_binary_rootfs
@@ -307,7 +307,16 @@ case "${LB_CHROOT_FILESYSTEM}" in
if [ -f config/binary_rootfs/squashfs.sort ]
then
MKSQUASHFS_OPTIONS="${MKSQUASHFS_OPTIONS} -sort squashfs.sort"
- cp config/binary_rootfs/squashfs.sort chroot #FIXME
+
+ case "${LB_BUILD_WITH_CHROOT}" in
+ true)
+ cp config/binary_rootfs/squashfs.sort chroot
+ ;;
+
+ false)
+ cp config/binary_rootfs/squashfs.sort .
+ ;;
+ esac
fi
case "${LB_BUILD_WITH_CHROOT}" in