GELI doesn't ask passphrase on boot

Alexey Luckyanchikov alexl at alkar.net
Sun Nov 13 02:59:20 PST 2005


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.

-- 
Sincerely,
Alexey Luckyanchikov


More information about the freebsd-geom mailing list