PATCH: build-initrd.sh be more verbose for {[INITIAL|MOUNT]DELAY}

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

while setting up root encryption I found this to be helpful. Patch
against recent loop-AES-v3.1f attached to this mail.

-- 
left blank, right bald
--- build-initrd.sh.orig	2007-01-31 20:04:15.000000000 +0100
+++ build-initrd.sh	2007-03-14 23:19:37.000000000 +0100
@@ -412,10 +412,12 @@
 
 #if ${INITIALDELAY}
     {
+	wrStr("Delaying initial operations for ${INITIALDELAY} seconds.\n");
         struct timespec req;
         req.tv_sec = ${INITIALDELAY};
         req.tv_nsec = 0;
         nanosleep(&req, 0);
+    	wrStr(" ...done, continuing.\n");
     }
 #endif
 
@@ -511,10 +513,12 @@
 #if ${EXTERNALGPGFILES}
 #if ${MOUNTDELAY}
     {
+	wrStr("Delaying mount operations for ${MOUNTDELAY} seconds.\n");
         struct timespec req;
         req.tv_sec = ${MOUNTDELAY};
         req.tv_nsec = 0;
         nanosleep(&req, 0);
+	wrStr(" ...done, continuing.\n");
     }
 #endif
     if(mount("${EXTERNALGPGDEV}", "/mnt", "${EXTERNALGPGTYPE}", MS_MGC_VAL | MS_RDONLY, 0)) {

Attachment: pgpdEY6IcUepX.pgp
Description: PGP signature


[Index of Archives]     [Kernel]     [Linux Crypto]     [Gnu Crypto]     [Gnu Classpath]     [Netfilter]     [Bugtraq]
  Powered by Linux