mirror of
https://github.com/flynx/proxmox-utils.git
synced 2025-10-28 18:50:08 +00:00
testing...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
b77b5944d8
commit
5bb1359676
@ -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}}
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user