Commit f6ef3d1
committed
efi: during installation using
instead of `partlabel`
Copy Dusty's comment from https://github.com/coreos/bootupd/pull/932/files#r2112567301:
During `bootc install to-disk` the esp device is not mounted but
we can call `get_esp_device()` and it will find the device via
the `/dev/disk/by-partlabel/` symlink. When running `cosa build` and
building a disk image using `OSBuild` the EFI partitions is mounted
but no udev `/dev/disk/by-partlabel/` symlinks exist because it's
just a chroot and not a full linux environment. In that case
fallback to using `blockdev` to find the partition.
Even better, get rid of `self.get_esp_device()` altogether and just
use `blockdev`blockdev to find esp partition1 parent 53db0e9 commit f6ef3d1
2 files changed
+21
-25
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
328 | 328 | | |
329 | 329 | | |
330 | 330 | | |
331 | | - | |
332 | | - | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
333 | 346 | | |
334 | 347 | | |
335 | 348 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | 43 | | |
48 | 44 | | |
49 | 45 | | |
| |||
61 | 57 | | |
62 | 58 | | |
63 | 59 | | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | 60 | | |
80 | 61 | | |
81 | 62 | | |
| |||
321 | 302 | | |
322 | 303 | | |
323 | 304 | | |
324 | | - | |
325 | | - | |
326 | | - | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
327 | 309 | | |
328 | | - | |
| 310 | + | |
| 311 | + | |
329 | 312 | | |
330 | 313 | | |
331 | 314 | | |
| |||
0 commit comments