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

mandos update

parent 0b7d6706
No related branches found
No related tags found
No related merge requests found
...@@ -42,33 +42,15 @@ Then ...@@ -42,33 +42,15 @@ Then
To setup autoboot using mandos: To setup autoboot using mandos:
1. install mandos-client 1. install mandos-client
1. add a workaround for Debian Bug#926641
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
chmod +x /etc/initramfs-tools/scripts/init-premount/local-fix-permissions-workaround
1. `echo '--options-for=mandos-client:--connect=116.203.128.207:16283' >> /etc/mandos/plugin-runner.conf` 1. `echo '--options-for=mandos-client:--connect=116.203.128.207:16283' >> /etc/mandos/plugin-runner.conf`
1. add a new key to the LUKS partition and prepare mandos snippet: 1. add a new key to the LUKS partition and prepare mandos snippet:
t=`tempfile` && (umask 077 &&
dd if=/dev/random bs=1 count=128 of="$t" && t=`tempfile` &&
cryptsetup luksAddKey /dev/sda2 "$t" && dd if=/dev/random bs=1 count=128 of="$t" &&
mandos-keygen --passfile "$t" cryptsetup luksAddKey /dev/sda2 "$t" &&
mandos-keygen --passfile "$t"
)
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. add the output of `mandos-keygen` from above 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. rebuild the initrd on the new host `update-initramfs -u` and reboot 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