root@tonybox:/home/live/auto# cat build
#!/bin/sh
set -e
lb build noauto "${@}" 2>&1 | tee build.log
root@tonybox:/home/live/auto# cat config
#!/bin/sh
set -e
case "$(dpkg --print-architecture)" in
amd64)
_LINUX_FLAVOURS="amd64"
_SOURCE="false"
;;
i386)
_LINUX_FLAVOURS="486 686-pae"
_SOURCE="false"
;;
esac
lb config noauto \
--clean \
--ignore-system-defaults \
--mode debian \
--linux-flavours "${_LINUX_FLAVOURS}" \
--linux-packages "linux-image linux-headers" \
--bootappend-live "boot=live config splash locales=zh_CN.UTF-8 username=tony hostname=tonybox" \
--bootappend-live-failsafe "boot=live config quiet splash locales=zh_CN.UTF-8 username=tony hostname=tonybox" \
--apt-indices false \
--parent-mirror-bootstrap "" \
--parent-mirror-chroot "" \
--parent-mirror-chroot-updates "" \
--parent-mirror-chroot-backports "" \
--parent-mirror-binary "" \
--parent-mirror-binary-updates "" \
--parent-mirror-binary-backports "" \
--parent-mirror-debian-installer "" \
--mirror-bootstrap "" \
--mirror-chroot "" \
--mirror-chroot-updates "" \
--mirror-chroot-backports "" \
--mirror-binary "" \
--mirror-binary-updates "" \
--mirror-binary-backports "" \
--mirror-debian-installer "" \
--mirror-bootstrap \
--source "${_SOURCE}" \
--archive-areas "main contrib" \
--bootloader syslinux \
--iso-volume "NiixLinux" \
--iso-publisher "Niix Linux Systems; etony.an@gmail.com" \
--iso-application "NiixLinux" \
--iso-preparer "NiixBuilder" \
--firmware-chroot false \
--memtest none \
--hooks "minimal" \
--debootstrap-options "--variant=minbase" \
--debian-installer live \
"${@}"
# --distribution sid \
# --apt-recommends false \
# --debian-installer live \
root@tonybox:/home/live/auto# cat clean
#!/bin/sh
set -e
lb clean noauto "${@}"
rm -f config/binary config/bootstrap config/chroot config/common config/source
rm -f config/control
rm -f build.log