From b57f994aa7c74d1b4e17e3df31ddf94702a8f6de Mon Sep 17 00:00:00 2001 From: seraphim <18ycm9tx@anonaddy.me> Date: Thu, 20 Aug 2026 21:42:04 +0700 Subject: add update.sh; sync live system state from /etc/portage into repo --- install.sh | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'install.sh') diff --git a/install.sh b/install.sh index 86435cf..94d4e27 100755 --- a/install.sh +++ b/install.sh @@ -73,6 +73,13 @@ restore_portage() { for d in "${PORTAGE_EMPTY_DIRS[@]}"; do run_root mkdir -p "/etc/portage/$d" done + + if [[ -f "$REPO_DIR/portage/PROFILE" ]]; then + local prof + prof="$(cat "$REPO_DIR/portage/PROFILE")" + log "linking /etc/portage/make.profile -> $prof" + run_root ln -snf "$prof" /etc/portage/make.profile + fi } restore_system_configs() { -- cgit v1.2.3