aboutsummaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-01-24 18:52:34 -0600
committerCraig Jennings <c@cjennings.net>2026-01-24 18:52:34 -0600
commit7d0f90da66985b402c6a25eb3eca8cc9e6060ced (patch)
tree94a4fefdccc5cc1750a7466b3764b44bf1b8d0b0 /init
downloadarchsetup-7d0f90da66985b402c6a25eb3eca8cc9e6060ced.tar.gz
archsetup-7d0f90da66985b402c6a25eb3eca8cc9e6060ced.zip
fix(testing): remove obsolete --skip-slow-packages option
This flag was removed from archsetup but remained in test scripts.
Diffstat (limited to 'init')
-rwxr-xr-xinit24
1 files changed, 24 insertions, 0 deletions
diff --git a/init b/init
new file mode 100755
index 0000000..a9ac5f3
--- /dev/null
+++ b/init
@@ -0,0 +1,24 @@
+#!/bin/sh
+
+# update and install tmux and git
+pacman -Sy --noconfirm >> /dev/null
+pacman -S --noconfirm tmux git
+
+# change the root password
+echo "root:welcome" | chpasswd
+
+# find the hostname from the file
+hostname=$(</etc/hostname)
+
+# identify which interface is up, then find the ip address
+interface_up=$(ip -br addr show | grep UP | grep -v 'lo' | awk '{print $1}' | head -n1)
+ipaddress=$(ip addr show $interface_up | grep 'inet ' | awk '{print $2}' | cut -d/ -f1)
+
+# start the ssh daemon
+systemctl start sshd
+
+echo ""; echo ""
+echo "init complete. you may ssh root@$hostname or ssh root@$ipaddress using the password 'welcome'"
+echo "Press control-c to stop now. Launching archinstall in 5 seconds."
+sleep 5
+archinstall