testing...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2024-01-08 01:27:22 +03:00
parent 29c236c134
commit 5454a5ab2b

View File

@ -92,7 +92,8 @@ 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) ; do
while ! $(lxc-attach $ID -- test -e /etc/inithooks.conf) \
&& [[ $(lxc-attach $ID -- cat /etc/inithooks.conf | wc -c) > 2 ]] ; do
printf '.'
sleep 2
done
@ -101,6 +102,8 @@ echo
echo "# Starting TKL Setup (this may take a few minutes to start)..."
@ lxc-attach $ID -- bash --login -c 'exit'
exit
# XXX the CT will reboot -- wait...
##@ lxc-attach $ID -- /usr/sbin/trunkey-init