ajustements
This commit is contained in:
parent
5d0c42df91
commit
117c715526
14
install.sh
14
install.sh
|
@ -106,18 +106,8 @@ echo -e "${BLUE}Installing GNU Guix...${NC}"
|
|||
herd start cow-store /mnt
|
||||
|
||||
install_guix() {
|
||||
tmpfile=$(mktemp)
|
||||
guix system init config.scm /mnt >(tee "$tmpfile")
|
||||
exit_code=$?
|
||||
|
||||
output=$(tail -n 3 "$tmpfile")
|
||||
rm -f "$tmpfile"
|
||||
|
||||
if [[ $exit_code -ne 0 && $output == *"died unexpectedly"* ]]; then
|
||||
return 1
|
||||
else
|
||||
return 0
|
||||
fi
|
||||
guix system init config.scm /mnt && return 0
|
||||
return 1
|
||||
}
|
||||
|
||||
max_retries=5
|
||||
|
|
Loading…
Reference in New Issue