Commit 59f7fff
composefs: Skip boot entry duplicate check during fresh installs
The find_vmlinuz_initrd_duplicates function looks at the host's
/sysroot/state/deploy directory to find existing deployments that
share the same kernel/initrd. However, during a fresh install to
a target disk (e.g., via --via-loopback), this causes a failure:
1. The host has existing deployments in /sysroot/state/deploy
2. find_vmlinuz_initrd_duplicates returns those entries
3. The code tries to find matching boot entries in the target's /boot
4. The target's /boot is empty → "Shared boot binaries not found"
Fix this by only checking for duplicates during upgrades (is_upgrade
== true). For fresh installs, the target boot partition is empty
anyway, and the duplicate check looks at the wrong state directory
(host vs target).
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Signed-off-by: Xiaofeng Wang <henrywangxf@me.com>1 parent e4b2f22 commit 59f7fff
1 file changed
+11
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
694 | 694 | | |
695 | 695 | | |
696 | 696 | | |
697 | | - | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
698 | 708 | | |
699 | 709 | | |
700 | 710 | | |
| |||
0 commit comments