Make it possible to pass live-build config options on the command line

debian-cd
Raphaël Hertzog 10 years ago
parent c68a3c4075
commit c5d7d55303

@ -35,6 +35,9 @@ while [ $# -gt 0 ]; do
dist="kali-rolling"
lb_opts="--initsystem systemd"
;;
--)
shift
;;
*)
temp="$temp "'"'"$arg"'"'
;;

@ -136,7 +136,7 @@ for KALI_ARCH in $KALI_ARCHES; do
: > build.log
run_and_log $SUDO lb clean --purge
[ $? -eq 0 ] || failure
run_and_log lb config -a $KALI_ARCH $KALI_CONFIG_OPTS
run_and_log lb config -a $KALI_ARCH $KALI_CONFIG_OPTS "$@"
[ $? -eq 0 ] || failure
run_and_log $SUDO lb build
if [ $? -ne 0 ] || [ ! -e $IMAGE_NAME ]; then

Loading…
Cancel
Save