testing...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2024-01-08 01:46:13 +03:00
parent b77b5944d8
commit 5bb1359676
2 changed files with 14 additions and 5 deletions

View File

@ -292,6 +292,10 @@ buildAssets(){
local ASSETS_DIR=$2
ASSETS_DIR=${ASSETS_DIR:=assets}
if ! [ -e $TEMPLATE_DIR ] ; then
return
fi
local TEMPLATES=($(find "$TEMPLATE_DIR" -type f))
for file in "${TEMPLATES[@]}" ; do
file=${file#${TEMPLATE_DIR}}

View File

@ -92,14 +92,19 @@ sleep ${TIMEOUT:=5}
# https://www.turnkeylinux.org/docs/inithooks
printf "# TKL setup, this may take a while"
while ! $(lxc-attach $ID -- test -e /etc/inithooks.conf) \
|| ! [[ $(lxc-attach $ID -- cat /etc/inithooks.conf | wc -c) < 2 ]] ; do
while ! $(lxc-attach $ID -- test -e /etc/inithooks.conf) ; do
printf '.'
sleep 2
sleep 5
done
echo
printf '+'
while ! [[ $(lxc-attach $ID -- cat /etc/inithooks.conf | wc -c) < 2 ]] ; do
printf '.'
sleep 5
done
printf 'ready.\n'
sleep 5
echo "# Starting TKL Setup (this may take a few minutes to start)..."
echo "# Starting TKL UI..."
@ lxc-attach $ID -- bash --login -c 'exit'
exit