Wait for archiso to finish its tasks
This commit is contained in:
parent
c7f3f6f4ea
commit
86f704a633
13
install.sh
13
install.sh
|
@ -446,6 +446,16 @@ getDotfiles() {
|
||||||
chsh -s $(which zsh)
|
chsh -s $(which zsh)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
checkForGraphicalInterface() {
|
||||||
|
journalctl --sync
|
||||||
|
result=$(journalctl -b -r -g "Graphical" | wc -l)
|
||||||
|
while [ $result -lt 2 ]; do
|
||||||
|
journalctl --sync
|
||||||
|
result=$(journalctl -b -r -g "Graphical" | wc -l)
|
||||||
|
sleep 1
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
steps=(
|
steps=(
|
||||||
checkUefi
|
checkUefi
|
||||||
updateSystemClock
|
updateSystemClock
|
||||||
|
@ -476,7 +486,6 @@ runScript() {
|
||||||
done
|
done
|
||||||
|
|
||||||
if [ -d "$HOME/Documents" ]; then
|
if [ -d "$HOME/Documents" ]; then
|
||||||
clear
|
|
||||||
whiptail --title "CocoASAIS" --msgbox "Now, we will finish the installation. Press OK and wait." 7 60
|
whiptail --title "CocoASAIS" --msgbox "Now, we will finish the installation. Press OK and wait." 7 60
|
||||||
getDotfiles
|
getDotfiles
|
||||||
whiptail --title "CocoASAIS" --msgbox "All done!" 0 0
|
whiptail --title "CocoASAIS" --msgbox "All done!" 0 0
|
||||||
|
@ -502,10 +511,10 @@ runScript() {
|
||||||
if [ $i -gt 0 ]; then
|
if [ $i -gt 0 ]; then
|
||||||
welcomeMsg="Welcome back to CocoASAIS!"
|
welcomeMsg="Welcome back to CocoASAIS!"
|
||||||
else
|
else
|
||||||
|
checkForGraphicalInterface
|
||||||
welcomeMsg="Welcome to CocoASAIS!"
|
welcomeMsg="Welcome to CocoASAIS!"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
reset
|
|
||||||
whiptail --title "CocoASAIS" --msgbox "${welcomeMsg}" 0 0
|
whiptail --title "CocoASAIS" --msgbox "${welcomeMsg}" 0 0
|
||||||
|
|
||||||
while [ $i -le "${#steps[@]}" ]; do
|
while [ $i -le "${#steps[@]}" ]; do
|
||||||
|
|
Loading…
Reference in New Issue