Commit 5e2338b
committed
When running
environment with a separate `/boot` partition, the physical root
is detected as `/target/sysroot`, ostree tries to write bootloader
entries to the wrong location `/target/sysroot/boot`.
With this fix, detect when we're installing alongside existing
ostree, if there's a separate boot partition, bind mount the actual
boot partition from `/target/boot` to `/target/sysroot/boot`. This
ensures that when ostree writes bootloader entries to
`/target/sysroot/boot`, they actually end up on the separate
`/boot` partition where they belong.
Assisted-by: Claude Code (Sonnet 4.5)
Signed-off-by: Huijing Hei <hhei@redhat.com>bootc install to-existing-root on an ostree1 parent 2c220bf commit 5e2338b
1 file changed
+30
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
758 | 758 | | |
759 | 759 | | |
760 | 760 | | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
| 764 | + | |
| 765 | + | |
| 766 | + | |
| 767 | + | |
| 768 | + | |
| 769 | + | |
| 770 | + | |
| 771 | + | |
| 772 | + | |
| 773 | + | |
| 774 | + | |
761 | 775 | | |
762 | 776 | | |
763 | 777 | | |
| |||
970 | 984 | | |
971 | 985 | | |
972 | 986 | | |
| 987 | + | |
| 988 | + | |
| 989 | + | |
| 990 | + | |
| 991 | + | |
| 992 | + | |
| 993 | + | |
| 994 | + | |
| 995 | + | |
| 996 | + | |
| 997 | + | |
| 998 | + | |
| 999 | + | |
| 1000 | + | |
| 1001 | + | |
| 1002 | + | |
973 | 1003 | | |
974 | 1004 | | |
975 | 1005 | | |
| |||
0 commit comments