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 local ASSETS_DIR=$2
ASSETS_DIR=${ASSETS_DIR:=assets} ASSETS_DIR=${ASSETS_DIR:=assets}
if ! [ -e $TEMPLATE_DIR ] ; then
return
fi
local TEMPLATES=($(find "$TEMPLATE_DIR" -type f)) local TEMPLATES=($(find "$TEMPLATE_DIR" -type f))
for file in "${TEMPLATES[@]}" ; do for file in "${TEMPLATES[@]}" ; do
file=${file#${TEMPLATE_DIR}} file=${file#${TEMPLATE_DIR}}

View File

@ -92,14 +92,19 @@ sleep ${TIMEOUT:=5}
# https://www.turnkeylinux.org/docs/inithooks # https://www.turnkeylinux.org/docs/inithooks
printf "# TKL setup, this may take a while" printf "# TKL setup, this may take a while"
while ! $(lxc-attach $ID -- test -e /etc/inithooks.conf) \ while ! $(lxc-attach $ID -- test -e /etc/inithooks.conf) ; do
|| ! [[ $(lxc-attach $ID -- cat /etc/inithooks.conf | wc -c) < 2 ]] ; do
printf '.' printf '.'
sleep 2 sleep 5
done 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' @ lxc-attach $ID -- bash --login -c 'exit'
exit exit