summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xarchsetup11
1 files changed, 9 insertions, 2 deletions
diff --git a/archsetup b/archsetup
index 197c1a0..c48f5ad 100755
--- a/archsetup
+++ b/archsetup
@@ -609,6 +609,13 @@ create_user () {
(chown -R "$username":wheel "$source_dir" >> "$logfile" 2>&1) || \
error "crash" "changing ownership of $source_dir" "$?"
+
+ # Bootstrap DNS for git clones and AUR installs (full config in essential_services)
+ if [ ! -L /etc/resolv.conf ] || [ "$(readlink /etc/resolv.conf)" != "/run/systemd/resolve/stub-resolv.conf" ]; then
+ display "task" "bootstrapping DNS resolution"
+ ln -sf /run/systemd/resolve/stub-resolv.conf /etc/resolv.conf >> "$logfile" 2>&1 || \
+ error "error" "bootstrapping DNS resolution" "$?"
+ fi
}
### User Customizations
@@ -633,8 +640,8 @@ user_customizations() {
>> "$logfile" 2>&1 ) || error "error" "$action" "$?"
action="restoring dotfile versions" && display "task" "$action"
- (cd "$dotfiles_dir" && git restore . \
- >> "$logfile" 2>&1 ) || error "error" "$action" "$?"
+ (cd "$dotfiles_dir" && git config --global --add safe.directory "$user_archsetup_dir" && \
+ git restore . >> "$logfile" 2>&1 ) || error "error" "$action" "$?"
action="creating common directories" && display "task" "$action"
# Create default directories and grant permissions