Bug 229357 - bootpool is not imported after boot (separated bootpool/zroot due to zroot encryption)
Summary: bootpool is not imported after boot (separated bootpool/zroot due to zroot en...
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: misc (show other bugs)
Version: 11.2-RELEASE
Hardware: amd64 Any
: --- Affects Some People
Assignee: freebsd-bugs mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-06-27 06:38 UTC by Petr Fischer
Modified: 2018-06-27 06:42 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Fischer 2018-06-27 06:38:33 UTC
I have encrypted zroot partition, so, my bootpool is separated from zroot zpool. Encryption classic, via GELI, password prompt before boot.

But on freshly updated 10.2, after every reboot, bootpool is not imported, so, no access to the kernel modules, resulting in other related issues (some autoloaded modules from rc.conf, like vbox, can crash the whole system during boot, because bootpool is just not available/auto imported)...

This is similar to bug #212258, but I have GPT (not MBR).

Workaround is probably to import bootpool in rc.local and then, load all necesary kernel modules (like linux, vbox etc.) manualy again (also in rc.local).

This bug occurs probably only on separated bootpool/zroot systems, due to zroot encryption.

Also - I have GPT partitions, but I am booting in CMS BIOS Mode (classic BIOS way), not UEFI, because with UEFI, my i915kms Intel Graphics does not work (tested on 11.0 and 11.1).

Is there any new way how to config encrypted zroot, than separated bootpool/zroot?

--- gpt output ----
=>       40  500118112  ada0  GPT  (238G)
         40       2008        - free -  (1.0M)
       2048       1024     1  freebsd-boot  (512K)
       3072       1024        - free -  (512K)
       4096     204800     2  efi  (100M)
     208896       2048        - free -  (1.0M)
     210944    4194304     3  freebsd-zfs  (2.0G)
    4405248    8388608     4  freebsd-swap  (4.0G)
   12793856  487324296     5  freebsd-zfs  (232G)

--- loader.conf (selection) ---
...
geli_ada0p5_keyfile0_load="YES"
geli_ada0p5_keyfile0_type="ada0p5:geli_keyfile0"
geli_ada0p5_keyfile0_name="/boot/encryption.key"
geom_eli_load="YES"
geom_eli_passphrase_prompt="YES"
vfs.root.mountfrom="zfs:zroot/ROOT/default"
kern.geom.label.disk_ident.enable="1"
kern.geom.label.gptid.enable="1"
zpool_cache_load="YES"
zpool_cache_type="/boot/zfs/zpool.cache"
zpool_cache_name="/boot/zfs/zpool.cache"
...
Comment 1 Petr Fischer 2018-06-27 06:42:50 UTC
Also, after every reboot, this email arrives:
-------
Subject: Cron <root@pf-bsd>    periodic reboot

cannot open 'bootpool': dataset does not exist
usage:
        snapshot|snap [-r] [-o property=value] ... <filesystem|volume>@<snap> ...

For the property list, run: zfs set|get

For the delegated permission list, run: zfs allow|unallow

-- End of reboot output --
---------


But bootpool definitely exists, I am importing it manualy (prev comment).