Skip to content

grub2-mkconfig fail with composefs enabled #3198

@karuboniru

Description

@karuboniru
$ journalctl -b -3 -u ostree-finalize-staged.service --output=cat
Finished ostree-finalize-staged.service - OSTree Finalize Staged Deployment.
Stopping ostree-finalize-staged.service - OSTree Finalize Staged Deployment...
Finalizing staged deployment
Copying /etc changes: 16 modified, 8 removed, 138 added
Copying /etc changes: 16 modified, 8 removed, 138 added
Refreshing SELinux policy
Refreshed SELinux policy in 1820 ms
Finalized deployment
bootfs is sufficient for calculated new size: 149.2 MB
error: Bootloader write config: grub2-mkconfig: 子进程已退出,代码 1
ostree-finalize-staged.service: Control process exited, code=exited, status=1/FAILURE
ostree-finalize-staged.service: Failed with result 'exit-code'.
Stopped ostree-finalize-staged.service - OSTree Finalize Staged Deployment.
ostree-finalize-staged.service: Consumed 4.059s CPU time, no IP traffic.

子进程已退出,代码 1 should be translation of child process has exited with code 1.


manually running grub2-mkconfig gives:

$ sudo grub2-mkconfig -o /dev/null
/usr/sbin/grub2-probe: error: failed to get canonical path of `overlay'.

It seems that grub2-probe failed to understand the filesystem layout with composefs enabled.


Version

rpm -q ostree grub2-tools-minimal             
ostree-2024.3-2.fc40.x86_64
grub2-tools-minimal-2.06-118.fc40.x86_64

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/composefsIssues related to composefsdifficulty/mediummedium complexity/difficutly issuereward/mediumFixing this will be notably usefultriagedThis issue has been evaluated and is valid

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions