Date: Sun, 13 Nov 2005 13:56:57 +0100 From: Pawel Jakub Dawidek <pjd@FreeBSD.org> To: Alexey Luckyanchikov <alexl@alkar.net> Cc: freebsd-geom@freebsd.org Subject: Re: GELI doesn't ask passphrase on boot Message-ID: <20051113125657.GE34696@garage.freebsd.pl> In-Reply-To: <20051113105915.GC13743@alkar.net> References: <20051113105915.GC13743@alkar.net>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --] On Sun, Nov 13, 2005 at 12:59:15PM +0200, Alexey Luckyanchikov wrote: +> Hi. +> +> I want GELI to ask password on boot as described in GELI(8): +> -b Ask for the passphrase on boot, before the root parti- +> tion is mounted. This makes it possible to use an +> encrypted root partition. One will still need bootable +> unencrypted storage with a /boot/ directory, which can +> be a CD-ROM disc or USB pen-drive, that can be removed +> after boot. +> But on boot GELI doesn't ask passphrase and doesn't create provider. +> +> FreeBSD version is 6.0-RELEASE, provider was initialized with: +> geli init -b -v -l 256 -s 2048 /dev/ad1s1a +> +> /boot/loader.conf contain: +> geom_eli_load="YES" +> kern.geom.eli.debug="255" +> kern.geom.debugflags="1" +> +> After boot "dmesg -a | fgrep -i eli" show: +> GEOM_ELI[1]: Start tasting. +> g_modevent(ELI, LOAD) +> g_load_class(ELI) +> g_eli_taste(ELI, ad0) +> GEOM_ELI[3]: Tasting ad0. +> g_destroy_geom(0xc1257300(eli:taste)) +> g_eli_taste(ELI, ad0s1) +> GEOM_ELI[3]: Tasting ad0s1. +> g_destroy_geom(0xc1256e80(eli:taste)) +> GEOM_ELI[1]: Tasting no more. +> g_eli_taste(ELI, ad0s1a) +> g_eli_taste(ELI, ad0s1b) +> g_eli_taste(ELI, ad0s1c) +> g_eli_taste(ELI, ad1) +> g_eli_taste(ELI, ad1s1) +> g_eli_taste(ELI, ad1s1a) +> g_eli_taste(ELI, ad1s1c) +> g_eli_taste(ELI, ad0s1a) +> +> It seems that problem is in g_eli.c, line 1092: +> SYSINIT(geli_boot_end, SI_SUB_RUN_SCHEDULER, SI_ORDER_ANY, g_eli_on_boot_end, NULL) +> geli_boot_end() called before GELI finish tasting. Use this feature only for encrypting root file system. In case of other file systems, check out /etc/defaults/rc.conf for examples of geli configuration on boot. -- Pawel Jakub Dawidek http://www.wheel.pl pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! [-- Attachment #2 --] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFDdzgZForvXbEpPzQRAnHuAJ9QRYqPF6rOKG0z9chan05fE9qa8wCfezDY eEZNr2fePW7SEHo/SBQn4nc= =RM/g -----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20051113125657.GE34696>
