Commit bae675d
committed
install: Allow permissive ESP detection for existing root
The strict ESP mount enforcement previously introduced caused regressions
in scenarios, specifically in CI environments
running inside containers (tmt/podman). In these contexts, bind mounts
often mask `/boot/efi`, causing `is_mountpoint` checks to fail even when
the configuration is valid.
This patch introduces a `require_esp_mount` field to `RootSetup`. When
targeting an existing root (host), we now utilize a permissive mode: if
the explicit mount check fails, logic falls back to scanning the
partition table. This restores compatibility with containerized installs
while maintaining strict safety checks for `to-filesystem` and `to-disk`
modes.
Signed-off-by: Daniele Guarascio <guarascio.daniele@gmail.com>1 parent 4ed589c commit bae675d
File tree
4 files changed
+44
-9
lines changed- crates/lib/src
- bootc_composefs
- install
4 files changed
+44
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
531 | 531 | | |
532 | 532 | | |
533 | 533 | | |
534 | | - | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
535 | 548 | | |
536 | 549 | | |
537 | 550 | | |
| |||
1074 | 1087 | | |
1075 | 1088 | | |
1076 | 1089 | | |
1077 | | - | |
| 1090 | + | |
| 1091 | + | |
| 1092 | + | |
| 1093 | + | |
| 1094 | + | |
| 1095 | + | |
| 1096 | + | |
| 1097 | + | |
| 1098 | + | |
| 1099 | + | |
| 1100 | + | |
| 1101 | + | |
| 1102 | + | |
| 1103 | + | |
| 1104 | + | |
1078 | 1105 | | |
1079 | 1106 | | |
1080 | 1107 | | |
| |||
1254 | 1281 | | |
1255 | 1282 | | |
1256 | 1283 | | |
| 1284 | + | |
1257 | 1285 | | |
1258 | 1286 | | |
1259 | 1287 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
| 95 | + | |
95 | 96 | | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
100 | 103 | | |
101 | 104 | | |
102 | 105 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1160 | 1160 | | |
1161 | 1161 | | |
1162 | 1162 | | |
| 1163 | + | |
1163 | 1164 | | |
1164 | 1165 | | |
1165 | 1166 | | |
| |||
1625 | 1626 | | |
1626 | 1627 | | |
1627 | 1628 | | |
| 1629 | + | |
1628 | 1630 | | |
1629 | 1631 | | |
1630 | 1632 | | |
| |||
2012 | 2014 | | |
2013 | 2015 | | |
2014 | 2016 | | |
2015 | | - | |
| 2017 | + | |
2016 | 2018 | | |
2017 | 2019 | | |
2018 | 2020 | | |
2019 | | - | |
| 2021 | + | |
2020 | 2022 | | |
2021 | 2023 | | |
2022 | 2024 | | |
| |||
2232 | 2234 | | |
2233 | 2235 | | |
2234 | 2236 | | |
2235 | | - | |
| 2237 | + | |
2236 | 2238 | | |
2237 | 2239 | | |
2238 | 2240 | | |
| |||
2394 | 2396 | | |
2395 | 2397 | | |
2396 | 2398 | | |
| 2399 | + | |
2397 | 2400 | | |
2398 | 2401 | | |
2399 | 2402 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
496 | 496 | | |
497 | 497 | | |
498 | 498 | | |
| 499 | + | |
499 | 500 | | |
500 | 501 | | |
0 commit comments