summaryrefslogtreecommitdiff
path: root/helpers/lh_source_virtual-hdd
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2009-12-13 21:17:45 +0100
committerDaniel Baumann <daniel@debian.org>2009-12-13 21:17:45 +0100
commit0b285d1c45dbe1c0fc21136ccec2e41c214acdc0 (patch)
tree7e7cc9f57ceb0d3700ee13541944efb044ae9d60 /helpers/lh_source_virtual-hdd
parentea05bbb3cae86270f0f8b1150566b9925e1abb3d (diff)
downloadvyos-live-build-0b285d1c45dbe1c0fc21136ccec2e41c214acdc0.tar.gz
vyos-live-build-0b285d1c45dbe1c0fc21136ccec2e41c214acdc0.zip
For consistency, using true|false instead of enabled|disabled in configuration options.
Diffstat (limited to 'helpers/lh_source_virtual-hdd')
-rwxr-xr-xhelpers/lh_source_virtual-hdd6
1 files changed, 3 insertions, 3 deletions
diff --git a/helpers/lh_source_virtual-hdd b/helpers/lh_source_virtual-hdd
index 59ee2b5e1..ac186dc11 100755
--- a/helpers/lh_source_virtual-hdd
+++ b/helpers/lh_source_virtual-hdd
@@ -23,7 +23,7 @@ Arguments "${@}"
Read_conffiles config/all config/common config/bootstrap config/chroot config/binary config/source
Set_defaults
-if [ "${LH_SOURCE}" != "enabled" ]
+if [ "${LH_SOURCE}" != "true" ]
then
exit 0
fi
@@ -47,7 +47,7 @@ Check_lockfile .lock
# Creating lock file
Create_lockfile .lock
-if [ "${LH_CHROOT_BUILD}" = "enabled" ]
+if [ "${LH_CHROOT_BUILD}" = "true" ]
then
case "${LH_BINARY_FILESYSTEM}" in
ext2|ext3)
@@ -70,7 +70,7 @@ DU_DIM="$(du -ms source | cut -f1)"
REAL_DIM="$(Calculate_partition_size ${DU_DIM} ${LH_BINARY_FILESYSTEM})"
dd if=/dev/zero of=source-virtual.img bs=1024k count=0 seek=${REAL_DIM}
-if [ "${LH_CHROOT_BUILD}" = "enabled" ]
+if [ "${LH_CHROOT_BUILD}" = "true" ]
then
mv source-virtual.img chroot