mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-05-18 22:31:36 +00:00
Support to only generate rootfs via variable (GENERATE_ROOTFS_ONLY).
This commit is contained in:
parent
84da578380
commit
eb76178ab5
@ -235,10 +235,16 @@ EOF
|
|||||||
(cd chroot && find usr/share/doc -maxdepth 1 -type d | xargs du -s | sort -nr)
|
(cd chroot && find usr/share/doc -maxdepth 1 -type d | xargs du -s | sort -nr)
|
||||||
echo END docdirs
|
echo END docdirs
|
||||||
|
|
||||||
|
if [ -z "${GENERATE_ROOTFS_ONLY:-}" ]; then
|
||||||
lb binary "$@"
|
lb binary "$@"
|
||||||
touch binary.success
|
touch binary.success
|
||||||
|
fi
|
||||||
) 2>&1 | tee binary.log
|
) 2>&1 | tee binary.log
|
||||||
|
|
||||||
|
if [ ! -z "${GENERATE_ROOTFS_ONLY:-}" ] && [ "${GENERATE_ROOTFS_ONLY}" != "false" ]; then
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
# bash has trouble with the build.sh sourcing arrangement at the top of this
|
# bash has trouble with the build.sh sourcing arrangement at the top of this
|
||||||
# file, so we use this cheap-and-cheerful approach rather than the more
|
# file, so we use this cheap-and-cheerful approach rather than the more
|
||||||
# correct 'set -o pipefail'.
|
# correct 'set -o pipefail'.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user