diff options
author | Daniel Baumann <daniel@debian.org> | 2009-12-13 21:17:45 +0100 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2011-03-09 19:17:03 +0100 |
commit | 701b5affd403d9a25df311fc422dd33eb4526c34 (patch) | |
tree | 7e7cc9f57ceb0d3700ee13541944efb044ae9d60 /helpers/lh_binary_rootfs | |
parent | 32930b4a6a14374d2895a4e9247fdc192a91124b (diff) | |
download | live-build-701b5affd403d9a25df311fc422dd33eb4526c34.zip live-build-701b5affd403d9a25df311fc422dd33eb4526c34.tar.gz |
For consistency, using true|false instead of enabled|disabled in configuration options.
Diffstat (limited to 'helpers/lh_binary_rootfs')
-rwxr-xr-x | helpers/lh_binary_rootfs | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/helpers/lh_binary_rootfs b/helpers/lh_binary_rootfs index 39c7d62..2c06ff4 100755 --- a/helpers/lh_binary_rootfs +++ b/helpers/lh_binary_rootfs @@ -83,7 +83,7 @@ do done # Handling chroot excludes -if [ "${LH_CHROOT_BUILD}" = "enabled" ] +if [ "${LH_CHROOT_BUILD}" = "true" ] then if [ -f config/binary_rootfs/excludes ] then @@ -136,7 +136,7 @@ case "${LH_CHROOT_FILESYSTEM}" in RESERVED_PERCENTAGE="--reserved-percentage" case "${LH_CHROOT_BUILD}" in - enabled) + true) Chroot chroot "genext2fs --size-in-blocks=${REAL_DIM} ${RESERVED_PERCENTAGE}=0 --root=chroot filesystem.${LH_CHROOT_FILESYSTEM}" # Move image @@ -176,7 +176,7 @@ case "${LH_CHROOT_FILESYSTEM}" in fi ;; - disabled) + false) genext2fs --size-in-blocks=${REAL_DIM} ${RESERVED_PERCENTAGE}=0 --root=chroot binary/${INITFS}/filesystem.${LH_CHROOT_FILESYSTEM} ;; esac @@ -210,7 +210,7 @@ case "${LH_CHROOT_FILESYSTEM}" in fi case "${LH_CHROOT_BUILD}" in - enabled) + true) Chroot chroot "mkfs.jffs2 ${JFFS2_OPTIONS} --root=chroot --output filesystem.jffs2" # Move image @@ -248,7 +248,7 @@ case "${LH_CHROOT_FILESYSTEM}" in fi ;; - disabled) + false) mkfs.jffs2 ${JFFS2_OPTIONS} --root=chroot --output binary/${INITFS}/filesystem.jffs2 ;; esac @@ -267,11 +267,11 @@ case "${LH_CHROOT_FILESYSTEM}" in fi case "${LH_CHROOT_BUILD}" in - enabled) + true) mv chroot/chroot binary/${INITFS}/filesystem.dir ;; - disabled) + false) cp -a chroot binary/${INITFS}/filesystem.dir ;; esac @@ -298,7 +298,7 @@ case "${LH_CHROOT_FILESYSTEM}" in MKSQUASHFS_OPTIONS="${MKSQUASHFS_OPTIONS} -no-progress" - if [ "${_VERBOSE}" = "enabled" ] + if [ "${_VERBOSE}" = "true" ] then MKSQUASHFS_OPTIONS="${MKSQUASHFS_OPTIONS} -info" fi @@ -310,7 +310,7 @@ case "${LH_CHROOT_FILESYSTEM}" in fi case "${LH_CHROOT_BUILD}" in - enabled) + true) # Create image Chroot chroot "mksquashfs chroot filesystem.squashfs ${MKSQUASHFS_OPTIONS}" @@ -354,7 +354,7 @@ case "${LH_CHROOT_FILESYSTEM}" in ${LH_ROOT_COMMAND} chmod 0644 binary/${INITFS}/filesystem.squashfs ;; - disabled) + false) if [ -f config/binary_rootfs/excludes ] then case "${LH_DISTRIBUTION}" in @@ -387,11 +387,11 @@ case "${LH_CHROOT_FILESYSTEM}" in fi case "${LH_CHROOT_BUILD}" in - enabled) + true) mv chroot/chroot binary ;; - disabled) + false) Echo_message "This may take a while." cp -a chroot binary ;; |