aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xpre-partman.sh2
-rwxr-xr-xslurpkey.sh4
2 files changed, 1 insertions, 5 deletions
diff --git a/pre-partman.sh b/pre-partman.sh
index dd3cde9..ebb1d1e 100755
--- a/pre-partman.sh
+++ b/pre-partman.sh
@@ -36,7 +36,7 @@ PermitRootLogin yes
AllowUsers root
StrictModes yes
-ForceCommand /cdrom/preseed/slurpkey.sh
+ForceCommand /bin/sh -c 'umask 0077; cat > ~root/root.key'
EOF
# Populate the authorized keys. TODO: make something more generic
diff --git a/slurpkey.sh b/slurpkey.sh
deleted file mode 100755
index c047dd4..0000000
--- a/slurpkey.sh
+++ /dev/null
@@ -1,4 +0,0 @@
-#!/bin/sh
-
-umask 0077
-cat > ~root/root.key