Skip to content

Commit

Permalink
Update autoinstall
Browse files Browse the repository at this point in the history
  • Loading branch information
peterjaap committed Mar 2, 2025
1 parent bb3005c commit 7c6d23a
Showing 1 changed file with 3 additions and 27 deletions.
30 changes: 3 additions & 27 deletions autoinstall.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ autoinstall:
- gimp
- git
- gpg
- chrome-gnome-shell
- gnome-shell-extensions
- gnome-tweaks
- htop
- httrack
- jq
Expand Down Expand Up @@ -111,30 +113,4 @@ autoinstall:
- curtin in-target --target=/target -- bash -c "wget -qO- https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh | bash"

# Install nvm
- curtin in-target --target=/target -- bash -c "wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash"

# Installing Gnome extensions
#- curtin in-target --target=/target -- gnome-extensions enable [email protected]
#- curtin in-target --target=/target -- gnome-extensions enable [email protected]
#- curtin in-target --target=/target -- gnome-extensions enable [email protected]

# Generate SSH key
- curtin in-target --target=/target -- bash -c '
USERNAME=$(getent passwd 1000 | cut -d":" -f1)
USER_HOME="/home/$USERNAME"
echo "Detected user $USERNAME"

if [ ! -d "$USER_HOME/.ssh" ]; then
sudo -u "$USERNAME" mkdir -p "$USER_HOME/.ssh"
fi

sudo -u "$USERNAME" ssh-keygen -t rsa -b 4096 -C "[email protected]" -f "$USER_HOME/.ssh/id_rsa" -N ""
sudo -u "$USERNAME" chmod 700 "$USER_HOME/.ssh"
sudo -u "$USERNAME" chmod 600 "$USER_HOME/.ssh/id_rsa"
sudo -u "$USERNAME" chmod 644 "$USER_HOME/.ssh/id_rsa.pub"

echo "SSH key generated for $USERNAME"'

- curtin in-target --target=/target -- bash -c '
echo "Installation paused. Create /tmp/continue to proceed.";
while [ ! -f /tmp/continue ]; do sleep 5; done'
- curtin in-target --target=/target -- bash -c "wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash"

0 comments on commit 7c6d23a

Please sign in to comment.