summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrad Clawsie <brad@b7j0c.org>2026-06-10 09:58:37 -0500
committerBrad Clawsie <brad@b7j0c.org>2026-06-10 09:58:37 -0500
commit5274f450ea8a3d618612912363d0d45a6ce4b76c (patch)
tree86361e2e2eef8ff4c668799568c7d90ca6af2844
parent8721dfc55998d1f942b1a2d3baf4e2fba8a54330 (diff)
batonpass
-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