diff options
author | Daniel Baumann <daniel@debian.org> | 2010-09-07 15:11:20 +0200 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2011-03-09 19:17:21 +0100 |
commit | 83bc63f725263c571094e3af1c88c58992bf0ac6 (patch) | |
tree | 25be3b96127e122c9f1448f6155dea6b03293248 /scripts/build/source_virtual-hdd | |
parent | 293765885126c0fe429718f403be2802a225cd68 (diff) | |
download | vyos-live-build-83bc63f725263c571094e3af1c88c58992bf0ac6.tar.gz vyos-live-build-83bc63f725263c571094e3af1c88c58992bf0ac6.zip |
Updating internal variables from lh to lb scheme, should be the last piece to finish the live-helper to live-build rename.
Diffstat (limited to 'scripts/build/source_virtual-hdd')
-rwxr-xr-x | scripts/build/source_virtual-hdd | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/scripts/build/source_virtual-hdd b/scripts/build/source_virtual-hdd index 8434468c8..babd8eb1c 100755 --- a/scripts/build/source_virtual-hdd +++ b/scripts/build/source_virtual-hdd @@ -11,7 +11,7 @@ set -e # Including common functions -. "${LH_BASE:-/usr/share/live/build}"/scripts/build.sh +. "${LB_BASE:-/usr/share/live/build}"/scripts/build.sh # Setting static variables DESCRIPTION="$(Echo 'build source image')" @@ -24,12 +24,12 @@ Arguments "${@}" Read_conffiles config/all config/common config/bootstrap config/chroot config/binary config/source Set_defaults -if [ "${LH_SOURCE}" != "true" ] +if [ "${LB_SOURCE}" != "true" ] then exit 0 fi -if ! In_list virtual-hdd "${LH_SOURCE_IMAGES}" +if ! In_list virtual-hdd "${LB_SOURCE_IMAGES}" then exit 0 fi @@ -48,9 +48,9 @@ Check_lockfile .lock # Creating lock file Create_lockfile .lock -if [ "${LH_BUILD_WITH_CHROOT}" = "true" ] +if [ "${LB_BUILD_WITH_CHROOT}" = "true" ] then - case "${LH_BINARY_FILESYSTEM}" in + case "${LB_BINARY_FILESYSTEM}" in ext2|ext3) Check_package chroot/sbin/mkfs.ext2 e2fsprogs ;; @@ -68,14 +68,14 @@ fi # Everything which comes here needs to be cleaned up, DU_DIM="$(du -ms source | cut -f1)" -REAL_DIM="$(Calculate_partition_size ${DU_DIM} ${LH_BINARY_FILESYSTEM})" +REAL_DIM="$(Calculate_partition_size ${DU_DIM} ${LB_BINARY_FILESYSTEM})" dd if=/dev/zero of=source-virtual.img bs=1024k count=0 seek=${REAL_DIM} -if [ "${LH_BUILD_WITH_CHROOT}" = "true" ] +if [ "${LB_BUILD_WITH_CHROOT}" = "true" ] then mv source-virtual.img chroot - case "${LH_BINARY_FILESYSTEM}" in + case "${LB_BINARY_FILESYSTEM}" in ext2) Chroot chroot "mkfs.ext2 -F -m 0 source-virtual.img" ;; @@ -87,7 +87,7 @@ then mv chroot/source-virtual.img ./ else - case "${LH_BINARY_FILESYSTEM}" in + case "${LB_BINARY_FILESYSTEM}" in ext2) mkfs.ext2 -F -m 0 source-virtual.img ;; @@ -99,10 +99,10 @@ else fi mkdir -p source.tmp -${LH_ROOT_COMMAND} mount -o loop source-virtual.img source.tmp +${LB_ROOT_COMMAND} mount -o loop source-virtual.img source.tmp cp -r source/* source.tmp -${LH_ROOT_COMMAND} umount source.tmp +${LB_ROOT_COMMAND} umount source.tmp rmdir source.tmp # Saving cache |