Commits

Brian Mearns committed 4a368aa Draft

Renamed the module to crypt-wait

  • Participants
  • Parent commits 449d57e

Comments (0)

Files changed (3)

 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
 # ex: ts=8 sw=4 sts=4 et filetype=sh
 
+# A module to replace the cryptroot-ask script of the crypt module with
+# one that won't ask for a password, but will just wait for a particular
+# signal that we've unlocked the root remotely over the dropbear SSH 
+# server.
+# Author: Brian Mearns
+# Date: 2013-Mar-09
+
 check() {
-    #Don't include unless asked for by the user.
+    #Always include.
     return 0
 }
 
 depends() {
-    echo "network"
+    echo "network crypt"
     return 0
 }
 

replace-cryptroot-ask.sh

 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
 # ex: ts=8 sw=4 sts=4 et filetype=sh
 if getargbool 0 rd.lukswait -n rd_NO_LUKS_WAIT; then
-    info "rd.lukswait = 1, replacing cryptroot-ask script for dropbear-mearns module..."
+    info "rd.lukswait = 1, replacing cryptroot-ask script for the crypt-wait module..."
 
     #Replace the script from crypt module that asks for password, with our own that
     # just sits around and waits for us to unlock it over SSH.

start-dropbear.sh

 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
 # ex: ts=8 sw=4 sts=4 et filetype=sh
 
-echo "MEARNS 2: Starting dropbear..."
+info "crypt-wait: Starting dropbear..."
 /usr/sbin/dropbear
-echo "MEARNS: Started? $?"
+info "crypt-wait: Dropbear status: $?"