[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
loop-aes and busybox/initramfs-hook
hi,
I'm trying to integrate loop-aes into my ramdisk, but when I type the
password to unlock my gpgkey I get the error message
"Unable to detect home directory for uid 0" due to this codesegment:
if((getuid() == 0) && gpgHomeDir && gpgHomeDir[0]) {
h = gpgHomeDir;
} else {
if(!(p = getpwuid(getuid()))) {
fprintf(stderr, _("Error: Unable to detect home directory for uid
%d\n"), (int)getuid());
return NULL;
}
h = p->pw_dir;
}
First, the login/password features were not build into busybox, so I put
/etc/passwd , /etc/group, /etc/shadow, /etc/nsswitch.conf, /lib/libnss_*
into the initrd, but same error message.
Then i tried a busybox-binary with build-in login/password features, and
again no success.
I would be glad if someone could point me in the right direction.
Regards,
Serkan
-
Linux-crypto: cryptography in and on the Linux system
Archive: http://mail.nl.linux.org/linux-crypto/