Commit 9a8bf1b
committed
install: Detect bootloader from target image instead of host
Fixes a regression where bootupd detection was happening before the
container was deployed, causing bootc to incorrectly check the host
system instead of the target container image. This led to false negatives
when the container had bootupd but the host didn't.
The fix moves bootloader detection into a new PostFetchState that's
created after the deployment is available, ensuring we check the actual
target filesystem.
Fixes: #1778
Assisted-by: Claude Code (Sonnet 4.5)
Signed-off-by: Colin Walters <walters@verbum.org>1 parent 9142b88 commit 9a8bf1b
File tree
4 files changed
+91
-39
lines changed- crates/lib/src
- bootc_composefs
- tmt/tests/booted
4 files changed
+91
-39
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
37 | 36 | | |
38 | 37 | | |
39 | 38 | | |
| |||
46 | 45 | | |
47 | 46 | | |
48 | 47 | | |
| 48 | + | |
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | | - | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
81 | 88 | | |
82 | 89 | | |
83 | 90 | | |
| |||
378 | 385 | | |
379 | 386 | | |
380 | 387 | | |
381 | | - | |
| 388 | + | |
382 | 389 | | |
383 | 390 | | |
384 | 391 | | |
| |||
400 | 407 | | |
401 | 408 | | |
402 | 409 | | |
403 | | - | |
| 410 | + | |
404 | 411 | | |
405 | 412 | | |
406 | 413 | | |
| |||
854 | 861 | | |
855 | 862 | | |
856 | 863 | | |
857 | | - | |
| 864 | + | |
858 | 865 | | |
859 | 866 | | |
860 | 867 | | |
861 | 868 | | |
862 | 869 | | |
863 | 870 | | |
864 | 871 | | |
865 | | - | |
| 872 | + | |
866 | 873 | | |
867 | 874 | | |
868 | 875 | | |
| |||
964 | 971 | | |
965 | 972 | | |
966 | 973 | | |
| 974 | + | |
| 975 | + | |
| 976 | + | |
| 977 | + | |
| 978 | + | |
| 979 | + | |
| 980 | + | |
| 981 | + | |
| 982 | + | |
| 983 | + | |
| 984 | + | |
| 985 | + | |
967 | 986 | | |
968 | 987 | | |
969 | 988 | | |
| |||
972 | 991 | | |
973 | 992 | | |
974 | 993 | | |
975 | | - | |
| 994 | + | |
976 | 995 | | |
977 | 996 | | |
978 | 997 | | |
| |||
988 | 1007 | | |
989 | 1008 | | |
990 | 1009 | | |
991 | | - | |
992 | | - | |
993 | | - | |
994 | | - | |
995 | | - | |
996 | | - | |
997 | | - | |
998 | 1010 | | |
999 | 1011 | | |
1000 | 1012 | | |
| |||
1005 | 1017 | | |
1006 | 1018 | | |
1007 | 1019 | | |
1008 | | - | |
| 1020 | + | |
1009 | 1021 | | |
1010 | 1022 | | |
1011 | 1023 | | |
| |||
1014 | 1026 | | |
1015 | 1027 | | |
1016 | 1028 | | |
1017 | | - | |
| 1029 | + | |
1018 | 1030 | | |
1019 | 1031 | | |
1020 | 1032 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
31 | | - | |
32 | | - | |
| 32 | + | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
38 | | - | |
39 | | - | |
| 37 | + | |
40 | 38 | | |
41 | 39 | | |
42 | 40 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
476 | 476 | | |
477 | 477 | | |
478 | 478 | | |
| 479 | + | |
479 | 480 | | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
480 | 484 | | |
481 | 485 | | |
482 | 486 | | |
| |||
1453 | 1457 | | |
1454 | 1458 | | |
1455 | 1459 | | |
1456 | | - | |
1457 | | - | |
1458 | | - | |
1459 | | - | |
1460 | | - | |
1461 | | - | |
1462 | | - | |
1463 | | - | |
1464 | | - | |
1465 | | - | |
1466 | | - | |
1467 | | - | |
1468 | | - | |
1469 | | - | |
1470 | | - | |
1471 | 1460 | | |
1472 | 1461 | | |
1473 | 1462 | | |
| |||
1483 | 1472 | | |
1484 | 1473 | | |
1485 | 1474 | | |
1486 | | - | |
1487 | 1475 | | |
1488 | 1476 | | |
1489 | 1477 | | |
1490 | 1478 | | |
1491 | 1479 | | |
1492 | 1480 | | |
| 1481 | + | |
| 1482 | + | |
| 1483 | + | |
| 1484 | + | |
| 1485 | + | |
| 1486 | + | |
| 1487 | + | |
| 1488 | + | |
| 1489 | + | |
| 1490 | + | |
| 1491 | + | |
| 1492 | + | |
| 1493 | + | |
| 1494 | + | |
| 1495 | + | |
| 1496 | + | |
| 1497 | + | |
| 1498 | + | |
| 1499 | + | |
| 1500 | + | |
| 1501 | + | |
| 1502 | + | |
| 1503 | + | |
1493 | 1504 | | |
1494 | 1505 | | |
1495 | 1506 | | |
| |||
1513 | 1524 | | |
1514 | 1525 | | |
1515 | 1526 | | |
| 1527 | + | |
| 1528 | + | |
| 1529 | + | |
| 1530 | + | |
| 1531 | + | |
| 1532 | + | |
1516 | 1533 | | |
1517 | 1534 | | |
1518 | 1535 | | |
1519 | 1536 | | |
1520 | | - | |
| 1537 | + | |
1521 | 1538 | | |
1522 | 1539 | | |
1523 | 1540 | | |
| |||
1660 | 1677 | | |
1661 | 1678 | | |
1662 | 1679 | | |
| 1680 | + | |
1663 | 1681 | | |
1664 | 1682 | | |
1665 | 1683 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
4 | 10 | | |
5 | 11 | | |
6 | | - | |
| 12 | + | |
7 | 13 | | |
8 | 14 | | |
9 | 15 | | |
10 | 16 | | |
11 | 17 | | |
12 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
13 | 37 | | |
14 | 38 | | |
0 commit comments