rpool fails to import on first boot after automated install (failed PRE_SHUTDOWN?)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
subiquity (Ubuntu) |
Fix Committed
|
Medium
|
Olivier Gayot |
Bug Description
After installing 24.04 with a zfs root, the system fails on first boot with an error that the rpool belongs to another system. This suggests that the installer is failing to export the pools after the install is complete. The zpool import must be manually forced for the boot to proceed, as in attached screenshot.
For greater context: I work with an infrastructure in which we network boot machines from the ubuntu server ISO with a preseed to automate the OS installation on our bare metal. The intended result is that we can flag a server to be reinstalled, reboot it, and then wait until it comes back up with a clean install, no user intervention required or desired. For the 22.04 images this works fine and the server will install and reboot cleanly. For the 24.04 installer, it doesn't, because of the above error with the zpool after reboot. The same preseed that produces a booting system from the 22.04(.4) ISO results in failure for the 24.04 version.
This seems to be the same ultimate failure mode as in https:/
I will attach the installer-
Changed in subiquity: | |
status: | Incomplete → Triaged |
importance: | Undecided → Medium |
summary: |
- rpool fails to import on first boot after automated install + rpool fails to import on first boot after automated install (failed + PRE_SHUTDOWN?) |
affects: | subiquity → subiquity (Ubuntu) |
tags: | added: foundations-todo |
Changed in subiquity (Ubuntu): | |
assignee: | nobody → Olivier Gayot (ogayot) |
Changed in subiquity (Ubuntu): | |
status: | In Progress → Fix Committed |
Hi Richard, thanks for the report.
Yes, it's surely similar to the linked bug you mentioned. zpool export is supposed to happen.
I would appreciate more of the logs from the install - a tarball of /var/log/installer would help, as the journal doesn't have it all.
I wonder what's going on in your late commands - is it possible that there is a process with a file open which is ultimately blocking the zpool export? Just a guess. To that end though you might consider, for debugging purposes, temporarily removing the late-commands portion to see if you get different results.