Bug 2222818
| Summary: | boom default read-only boot entries don't exist on virt machines | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 9 | Reporter: | Corey Marthaler <cmarthal> |
| Component: | boom-boot | Assignee: | LVM and device-mapper development team <lvm-team> |
| Status: | CLOSED NOTABUG | QA Contact: | cluster-qe <cluster-qe> |
| Severity: | low | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 9.3 | CC: | agk, bmr, jbrassow, mcsontos |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2023-07-19 17:34:43 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Corey Marthaler
2023-07-13 21:10:57 UTC
This is because on the virt host there is no profile set up. By default boom will not list boot entries for which it cannot find a valid profile (since we can't manipulate them usefully without an OsProfile). These entries can be optionally displayed by using --all:
[root@localhost ~]# boom list
BootID Version Name RootDevice
[root@localhost ~]# boom list --all
BootID Version Name RootDevice
40da505 5.14.0-337.el9.x86_64 /dev/mapper/rhel-root
887dc88 0-rescue-a693ef7fe2c44a559151b64919509e17 /dev/mapper/rhel-root
If you create a profile that matches the OS version then the "normal" system boot entry will start showing up:
[root@localhost ~]# boom profile create --from-host
Created profile with os_id 6514b55:
OS ID: "6514b555d12abeb890c92453c3127d7bf1f52329",
Name: "Red Hat Enterprise Linux", Short name: "rhel",
Version: "9.3 (Plow)", Version ID: "9.3",
Kernel pattern: "/vmlinuz-%{version}", Initramfs pattern: "/initramfs-%{version}.img",
Root options (LVM2): "rd.lvm.lv=%{lvm_root_lv}",
Root options (BTRFS): "rootflags=%{btrfs_subvolume}",
Options: "root=%{root_device} ro %{root_opts} crashkernel=1G-4G:192M,4G-64G:256M,64G-:512M resume=/dev/mapper/rhel-swap rd.lvm.lv=rhel/swap rhgb quiet",
Title: "%{os_name} %{os_version_id} (%{version})",
Optional keys: "grub_users grub_arg grub_class id", UTS release pattern: "el9"
[root@localhost ~]# boom list
BootID Version Name RootDevice
40da505 5.14.0-337.el9.x86_64 Red Hat Enterprise Linux /dev/mapper/rhel-root
The rescue boot entry will only show up with --all because the version strings used in that boot entry do not conform to the normal expected uname pattern.
The physical host where the system boot entry is showing up seems to have already had an OsProfile created as there is a boom-managed boot entry in /boot/loader/entries:
-rw-r--r--. 1 root root 537 Jul 13 21:07 7b2d82dad70f4ece8f867b6a482308de-cd14f03-5.14.0-322.el9.x86_64.conf
|