Skip to content
Snippets Groups Projects
Commit 3d902f67 authored by Peter Palfrader's avatar Peter Palfrader
Browse files

try to fix formatting

parent 17166f07
No related branches found
No related tags found
No related merge requests found
......@@ -43,31 +43,27 @@ To setup autoboot using mandos:
1. install mandos-client
1. add a new key to the LUKS partition and prepare mandos snippet:
```
t=`tempfile`
dd if=/dev/random bs=1 count=128 of="$t"
cryptsetup luksAddKey /dev/sda2 "$t"
mandos-keygen --passfile "$t"
```
t=`tempfile`
dd if=/dev/random bs=1 count=128 of="$t"
cryptsetup luksAddKey /dev/sda2 "$t"
mandos-keygen --passfile "$t"
1. and add a workaround for Debian Bug#926641
```
cut -b 2- > /etc/initramfs-tools/scripts/init-premount/local-fix-permissions-workaround << 'EOF'
#!/bin/sh
PREREQ=""
prereqs() {
echo "$PREREQ"
}
case $1 in
prereqs)
prereqs
exit 0
;;
esac
. /scripts/functions
# work around for debian bug #926641
chmod a+rx /usr/lib64 /usr/lib/x86_64-linux-gnu /usr/lib/mandos/plugins.d /usr/lib/mandos/plugin-helpers
EOF
```
cat > /etc/initramfs-tools/scripts/init-premount/local-fix-permissions-workaround << 'EOF'
#!/bin/sh
PREREQ=""
prereqs() {
echo "$PREREQ"
}
case $1 in
prereqs)
prereqs
exit 0
;;
esac
. /scripts/functions
# work around for debian bug #926641
chmod a+rx /usr/lib64 /usr/lib/x86_64-linux-gnu /usr/lib/mandos/plugins.d /usr/lib/mandos/plugin-helpers
EOF
1. add the output of `mandos-keygen` to `/etc/mandos/clients.conf` on the mandos-server and `service mandos restart` and `puppet agent -t` (to update the firewall after you added the host to ldap)
1. `echo '--options-for=mandos-client:--connect=116.203.128.207:16283' >> /etc/mandos/plugin-runner.conf`
1. rebuild the initrd on the new host `update-initramfs -u` and reboot (
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