Maytag Metalark avatar Maytag Metalark committed 4a368aa Draft

Renamed the module to crypt-wait

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: $?"
 
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.