Compare commits

..

No commits in common. "3843043c000a29e684618abc78c32ebe4fbefba8" and "6c9978b315c13daa31cdece3251a61c1e5fb9c71" have entirely different histories.

2 changed files with 3 additions and 14 deletions

View file

@ -165,17 +165,10 @@ cd ~/dots
./install_root.sh ./install_root.sh
``` ```
Exit chroot and create an `/etc/resolv.conf` symlink (this needs to happen outside of chroot, since arch-chroot bind-mounts this file, so trying to override it from within won't work). Enter the ZSH shell for a better experience
```bash ```bash
exit zsh
ln -sf /run/systemd/resolve/stub-resolv.conf /mnt/etc/resolv.conf
```
Chroot back into the system, this time with the configured ZSH shell for better experience:
```bash
arch-chroot /mnt zsh
``` ```
Create non-privileged user Create non-privileged user

View file

@ -7,8 +7,6 @@ set -euo pipefail
# $ git clone https://github.com/ItsDrike/dotfiles ~/dots # $ git clone https://github.com/ItsDrike/dotfiles ~/dots
# $ cd ~/dots # $ cd ~/dots
# $ ./install_root.sh # $ ./install_root.sh
# $ exit
# $ ln -sf /run/systemd/resolve/stub-resolv.conf /mnt/etc/resolv.conf
# ----------------------------------------------------------------------- # -----------------------------------------------------------------------
if [ "$UID" != 0 ]; then if [ "$UID" != 0 ]; then
@ -25,7 +23,7 @@ pacman -Syu --noconfirm
# Install essential packages # Install essential packages
pacman -S --noconfirm --needed \ pacman -S --noconfirm --needed \
networkmanager neovim sudo reflector pacman-contrib man-db man-pages rsync btop \ networkmanager neovim sudo reflector pacman-contrib man-db man-pages rsync btop \
bind base-devel git fd ripgrep fwupd arch-audit systemd-resolvconf bind base-devel git fd ripgrep fwupd arch-audit
# Install packages necessary for this script / other scripts in this dotfiles repo # Install packages necessary for this script / other scripts in this dotfiles repo
pacman -S --noconfirm --needed python-rich bc lua jq bat pacman -S --noconfirm --needed python-rich bc lua jq bat
@ -67,8 +65,6 @@ echo "You can now run zsh or exit the chroot, and re-run it with: arch-chroot /m
echo "This will put you into a configured ZSH shell, you can continue " \ echo "This will put you into a configured ZSH shell, you can continue " \
"configuring the rest of the system manually from there." "configuring the rest of the system manually from there."
echo "" echo ""
echo "Required extra steps:"
echo " - Symlink /etc/resolv.conf to use systemd-resolved stub (you need to be outside of arch-chroot for this, since arch-chroot is bind-mounting it). Run ln -sf /run/systemd/resolve/stub-resolv.conf /mnt/etc/resolv.conf"
echo "Optional extra steps:" echo "Optional extra steps:"
echo " - enable cronie & copy /etc/crontab & anacrontab from dotfiles" echo " - enable cronie & copy /etc/crontab & anacrontab from dotfiles"
echo " - install docker and copy /etc/docker" echo " - install docker and copy /etc/docker"