Re: Problem with root filesystem encryption

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

 



Michael Böhm wrote:
> The password consists of characters [a..z], [A..Z], [0..9], no z, no y, no
> special characters.
[snip]
> merkur:~# ldd /boot/gpg
>         not a dynamic executable

Ok. Can you provide output of "ls -l /boot" command and build-initrd.sh
configuration data (the FOO=abc parts at the beginning of the
build-initrd.sh file or a separate config file).

To get more info why gpg fails, can you apply attached patch to util-linux
and recompile new mount+losetup programs and copy new losetup to /boot
directory?

-- 
Jari Ruusu  1024R/3A220F51 5B 4B F9 BB D3 3F 52 E9  DB 1D EB E3 24 0E A9 DD


--- util-linux-2.12h-AES/mount/lomount.c	Tue Oct 26 17:53:23 2004
+++ util-linux-2.12h-AES.edited/mount/lomount.c	Tue Nov 23 21:52:47 2004
@@ -382,10 +382,10 @@
 		close(pfdi[1]);
 		close(pfdo[0]);
 		close(pfdo[1]);
-		if((x = open("/dev/null", O_WRONLY)) >= 0) {
-			dup2(x, 2);
-			close(x);
-		}
+//		if((x = open("/dev/null", O_WRONLY)) >= 0) {
+//			dup2(x, 2);
+//			close(x);
+//		}
 		x = 0;
 		a[x++] = "gpg";
 		if(gpgHomeDir && gpgHomeDir[0]) {
@@ -394,9 +394,9 @@
 		}
 		a[x++] = "--options";
 		a[x++] = "/dev/null";
-		a[x++] = "--quiet";
-		a[x++] = "--batch";
-		a[x++] = "--no-tty";
+		a[x++] = "--verbose";
+//		a[x++] = "--batch";
+//		a[x++] = "--no-tty";
 		a[x++] = "--passphrase-fd";
 		a[x++] = str;
 		a[x++] = "--decrypt";

-
Linux-crypto:  cryptography in and on the Linux system
Archive:       http://mail.nl.linux.org/linux-crypto/



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