Skip to content
Snippets Groups Projects
Verified Commit 61640e63 authored by anarcat's avatar anarcat
Browse files

make bootstrap copy-pasteable

parent 0d273692
No related branches found
No related tags found
No related merge requests found
...@@ -106,12 +106,10 @@ which we'll use below. ...@@ -106,12 +106,10 @@ which we'll use below.
`/target` and that the boot device is defined by `$BOOT_DEVICE` `/target` and that the boot device is defined by `$BOOT_DEVICE`
(populated above by FAI): (populated above by FAI):
# make target/run stay clean mkdir -p /target/run && mount -t tmpfs tgt-run /target/run &&
mkdir -p /target/run && mount -t tmpfs tgt-run /target/run mkdir /target/run/udev && mount -o bind /run/udev /target/run/udev &&
# grml-debootstrap hangs for weasel in vgs without this: bootdisk=/dev/nvme1n1 &&
mkdir /target/run/udev && mount -o bind /run/udev /target/run/udev ROOTPASSWORD=$(tr -dc 'A-Za-z0-9' < /dev/urandom | head -c 30) &&
ROOTPASSWORD=\$(tr -dc 'A-Za-z0-9' < /dev/urandom | head -c 30) \
apt-get install -y grml-debootstrap && \ apt-get install -y grml-debootstrap && \
sed -e 's/postfix//; sed -e 's/postfix//;
s/vlan//; s/vlan//;
...@@ -133,8 +131,7 @@ which we'll use below. ...@@ -133,8 +131,7 @@ which we'll use below.
--mirror https://mirror.hetzner.de/debian/packages/ \ --mirror https://mirror.hetzner.de/debian/packages/ \
--packages /root/grml-packages \ --packages /root/grml-packages \
--password "$ROOTPASSWORD" \ --password "$ROOTPASSWORD" \
--remove-configs --defaultinterfaces --remove-configs --defaultinterfaces &&
umount /target/run/udev /target/run umount /target/run/udev /target/run
5. Once the bootstrapping is complete, you still need to make sure 5. Once the bootstrapping is complete, you still need to make sure
......
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