mirror of
https://github.com/ItsDrike/dotfiles.git
synced 2025-09-13 02:30:04 +00:00
Mention adding /etc/resolv.conf symlink
This commit is contained in:
parent
6c9978b315
commit
0058d784e2
2 changed files with 13 additions and 2 deletions
|
@ -165,10 +165,17 @@ cd ~/dots
|
||||||
./install_root.sh
|
./install_root.sh
|
||||||
```
|
```
|
||||||
|
|
||||||
Enter the ZSH shell for a better experience
|
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).
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
zsh
|
exit
|
||||||
|
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
|
||||||
|
|
|
@ -7,6 +7,8 @@ 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
|
||||||
|
@ -65,6 +67,8 @@ 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"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue