summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--nspawn/post-install.txt6
1 files changed, 4 insertions, 2 deletions
diff --git a/nspawn/post-install.txt b/nspawn/post-install.txt
index 6c6f440..6f4b580 100644
--- a/nspawn/post-install.txt
+++ b/nspawn/post-install.txt
@@ -1,5 +1,7 @@
-# set root passwd
-systemd-nspawn -D /var/lib/machines/{$machine} /usr/bin/passwd
+# set root passwd from local shell
+sudo systemd-nspawn -D /var/lib/machines/{$machine} /usr/bin/passwd
+
+# do sudo systemd-nspawn -b -D /var/lib/machines/{$machine} to log in as root and do...
pacman-key --init
pacman-key --populate archlinux
useradd -m -G wheel -s /usr/bin/fish brad