aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2013-09-17 22:31:57 +0200
committerGuilhem Moulin <guilhem@fripost.org>2015-06-07 04:27:24 +0200
commit9c238e41f054000f1cea9d8da9b974185e838f16 (patch)
tree3fd40437659986ae8eb190a1bfe5495525b26d51
parent97ee0fb98d488a745c6c884b875e173922096889 (diff)
Bugfixes.
-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