1
0
mirror of https://github.com/systemd/systemd.git synced 2025-11-05 16:24:15 +03:00
Files
systemd/src
Yu Watanabe 37d1f1573b bootctl: do not fail on removing unfied kernel image
A boot loader entry for a unified kernel image has
BootEntry.kernel : path to the image relative to ESP or XBOOTLDR,
BootEntry.path   : path to the image.
Hence, these two effectively point to the same file.

Hence, by unlink command, the image is removed by
```
deref_unlink_file(&known_files, e->kernel, e->root);
```
then later tried again by
```
r = chase_and_unlink(e->path, root, ...);
```
and of course it fails with -ENOENT.

Let's ignore the failure there. We already ignore ENOENT on removal
at various places, especially in deref_unlink_file().

Fixes #38706.
Follow-ups for 8702496bfb.
2025-08-26 15:45:44 +02:00
..
2025-05-14 22:34:02 +02:00
2025-05-14 22:34:02 +02:00
2025-05-21 10:49:42 +02:00
2025-05-21 10:49:42 +02:00
2025-08-26 04:54:19 +09:00
2025-07-12 21:19:01 +09:00
2025-07-26 05:00:02 +09:00
2025-05-14 22:34:02 +02:00
2025-05-14 22:34:02 +02:00
2025-05-14 22:34:02 +02:00
2025-08-20 13:19:51 +01:00
2025-05-14 22:34:02 +02:00
2025-08-08 19:39:31 +09:00
2025-07-03 17:43:01 +02:00
2025-05-14 22:34:02 +02:00
2025-05-21 10:49:42 +02:00
2025-05-21 10:49:42 +02:00
2025-07-14 13:07:29 +01:00
2025-08-20 13:19:51 +01:00
2025-05-21 10:49:42 +02:00
2025-08-26 06:00:03 +09:00
2025-05-21 10:49:42 +02:00
2025-05-21 10:49:42 +02:00
2025-05-21 10:49:42 +02:00
2025-07-12 21:19:01 +09:00
2025-08-18 15:37:43 +09:00
2025-05-14 22:34:02 +02:00