From 62fb159cac55c3489cc8132dbe480edd2fc499a5 Mon Sep 17 00:00:00 2001 From: JOLIMAITRE Matthieu Date: Tue, 20 Feb 2024 03:50:04 +0100 Subject: [PATCH] fix post_install not installing paru and add auto quit for building vm --- profile/airootfs/root/.zlogin | 19 ++++++++++--------- profile/airootfs/root/post_install.sh | 2 +- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/profile/airootfs/root/.zlogin b/profile/airootfs/root/.zlogin index bb07fe3..2fbd798 100644 --- a/profile/airootfs/root/.zlogin +++ b/profile/airootfs/root/.zlogin @@ -5,12 +5,13 @@ fi loadkeys fr -echo "[.zlogin] ____ starting auto install ____" -archinstall --config ./user_configuration.json --creds ./user_credentials.json --silent -echo "[.zlogin] ____ finished auto install ____" -echo "[.zlogin] ____ starting post install ____" -sh post_install.sh -echo "[.zlogin] ____ finished post install ____" - -# echo "[.zlogin] shutting down ..." -# # shutdown now +( + set -e + echo "[.zlogin] ____ starting auto install ____" + archinstall --config ./user_configuration.json --creds ./user_credentials.json --silent + echo "[.zlogin] ____ finished auto install ____" + echo "[.zlogin] ____ starting post install ____" + sh post_install.sh + echo "[.zlogin] ____ finished post install ____" + shutdown now +) diff --git a/profile/airootfs/root/post_install.sh b/profile/airootfs/root/post_install.sh index acc9460..0d24aa8 100644 --- a/profile/airootfs/root/post_install.sh +++ b/profile/airootfs/root/post_install.sh @@ -19,4 +19,4 @@ log "installing paru" git clone https://aur.archlinux.org/paru-bin.git cd paru-bin makepkg -si - " | arch-chroot "$ROOT" su user sh + " | arch-chroot "$ROOT" su user