summaryrefslogtreecommitdiff
path: root/install.sh
diff options
context:
space:
mode:
authorseraphim <18ycm9tx@anonaddy.me>2026-08-20 21:42:04 +0700
committerseraphim <18ycm9tx@anonaddy.me>2026-08-20 21:42:04 +0700
commitb57f994aa7c74d1b4e17e3df31ddf94702a8f6de (patch)
tree4996797bc050b064f009e524e0b722737c01a66c /install.sh
parente24fec3b8f2ac06ad8eb149df3fa36770df3bd2f (diff)
add update.sh; sync live system state from /etc/portage into repo
Diffstat (limited to 'install.sh')
-rwxr-xr-xinstall.sh7
1 files changed, 7 insertions, 0 deletions
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() {