diff 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 39c7d622e..2c06ff4c5 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 ;; |