Skip site navigation (1)Skip section navigation (2)
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

--xJK8B5Wah2CMJs8h
Content-Type: text/plain; charset=iso-8859-2
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sun, Nov 13, 2005 at 12:59:15PM +0200, Alexey Luckyanchikov wrote:
+> Hi.
+>=20
+> 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.
+>=20
+> FreeBSD version is 6.0-RELEASE, provider was initialized with:
+> geli init -b -v -l 256 -s 2048 /dev/ad1s1a
+>=20
+> /boot/loader.conf contain:
+> geom_eli_load=3D"YES"
+> kern.geom.eli.debug=3D"255"
+> kern.geom.debugflags=3D"1"
+>=20
+> 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)
+>=20
+> 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.

--=20
Pawel Jakub Dawidek                       http://www.wheel.pl
pjd@FreeBSD.org                           http://www.FreeBSD.org
FreeBSD committer                         Am I Evil? Yes, I Am!

--xJK8B5Wah2CMJs8h
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (FreeBSD)

iD8DBQFDdzgZForvXbEpPzQRAnHuAJ9QRYqPF6rOKG0z9chan05fE9qa8wCfezDY
eEZNr2fePW7SEHo/SBQn4nc=
=RM/g
-----END PGP SIGNATURE-----

--xJK8B5Wah2CMJs8h--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20051113125657.GE34696>