Skip to content
Snippets Groups Projects
Unverified Commit fc3587b3 authored by anarcat's avatar anarcat
Browse files

move password setup to a post-script

parent 9775fe80
No related branches found
No related tags found
No related merge requests found
......@@ -107,8 +107,6 @@ which we'll use below.
opposed to the *partition* which is `$BOOT_DEVICE`.
BOOT_DISK=/dev/nvme0n1 &&
ROOTPASSWORD=$(tr -dc 'A-Za-z0-9' < /dev/urandom | head -c 30) &&
echo "root password: $ROOTPASSWORD" &&
mkdir -p /target/run && mount -t tmpfs tgt-run /target/run &&
mkdir /target/run/udev && mount -o bind /run/udev /target/run/udev &&
apt-get install -y grml-debootstrap && \
......@@ -120,7 +118,7 @@ which we'll use below.
--mirror https://mirror.hetzner.de/debian/packages/ \
--packages /root/tsa-misc/installer/packages \
--post-scripts /root/tsa-misc/installer/post-scripts/ \
--password "$ROOTPASSWORD" \
--nopassword \
--remove-configs \
--defaultinterfaces &&
umount /target/run/udev /target/run
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment