Ubuntu 20.04 daily - Root-on-ZFS broken after install

Asked by Ivan Tomica

I've noticed this weird issue after installing Root-on-ZFS option with daily image of Focal where /var/lib directories aren't properly mounted. I'm not doing any advanced partitioning except selecting ZFS option in installer. This issue is repeatable via virtual machine as well as the real hardware.

Root pool mountpoints when installation has been started

| NAME | MOUNTPOINT |
| rpool | /target |
| rpool/ROOT | none |
| rpool/ROOT/ubuntu_f1q4ap | /target |
| rpool/ROOT/ubuntu_f1q4ap/srv | /target/srv |
| rpool/ROOT/ubuntu_f1q4ap/usr | /target/usr |
| rpool/ROOT/ubuntu_f1q4ap/usr/local | /target/usr/local |
| rpool/ROOT/ubuntu_f1q4ap/var | /target/var |
| rpool/ROOT/ubuntu_f1q4ap/var/games | /target/var/games |
| rpool/ROOT/ubuntu_f1q4ap/var/lib | /target/var/lib |
| rpool/ROOT/ubuntu_f1q4ap/var/lib/AccountServices | /target/var/lib |
| rpool/ROOT/ubuntu_f1q4ap/var/lib/NetworkManager | /target/var/lib/NetworkManager |
| rpool/ROOT/ubuntu_f1q4ap/var/lib/apt | /target/var/lib/apt |
| rpool/ROOT/ubuntu_f1q4ap/var/lib/dpkg | /target/var/lib/dpkg |
| rpool/ROOT/ubuntu_f1q4ap/var/log | /target/var/log |
| rpool/ROOT/ubuntu_f1q4ap/var/mail | /target/var/mail |
| rpool/ROOT/ubuntu_f1q4ap/var/snap | /target/var/snap |
| rpool/ROOT/ubuntu_f1q4ap/var/spool | /target/var/spool |
| rpool/ROOT/ubuntu_f1q4ap/var/www | /target/var/www |
| rpool/USERDATA | /target |

During installation:

$ zfs get mounted -H rpool/ROOT/ubuntu_f1q4ap/var/lib/apt
rpool/ROOT/ubuntu_f1q4ap/var/lib/apt mounted yes -

$ zfs get mounted -H rpool/ROOT/ubuntu_f1q4ap/var/lib/dpkg
rpool/ROOT/ubuntu_f1q4ap/var/lib/dpkg mounted yes -

But after the installation /var/lib dataset doesn't get mounted and with it AccountServices, NetworkManager, apt, and dpkg don't get mounted as well. This causes system to save those folders directly in parent dataset and those won't be auto-mounted later which results in somewhat broken install.

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1
Revision history for this message
Ivan Tomica (itomica-deactivatedaccount) said :
#2

Sure, but even as experimental option it still doesn't do right thing by default. So this is a known bug/issue? Is there a thread or something I can follow to see this being resolved?

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3

Yes.. Because its experimental. I suggest you report a bug so it can be addressed.

Can you help with this problem?

Provide an answer of your own, or ask Ivan Tomica for more information if necessary.

To post a message you must log in.