Fix recent update issues

This fixes the recent issues of `cannot stat /efi/EFI/Linux` we get when using `update.sh`

systemd no longer auto-mounts the ESP at `/efi`. Reason is explained in a comment inline.
This commit is contained in:
Lasath Fernando
2024-12-05 08:56:14 +00:00
committed by Nate Graham
parent fea048bde0
commit 9ccf3abe07
2 changed files with 6 additions and 3 deletions

View File

@@ -11,7 +11,8 @@ MatchPattern=kde-linux_@v.efi
[Target]
Type=regular-file
Path=/efi/EFI/Linux
Path=/EFI/Linux
PathRelativeTo=boot
# Keep matching kdeos so the old images get cleaned up.
MatchPattern=kde-linux_@v+@l-@d.efi \
kde-linux_@v+@l.efi \

View File

@@ -78,9 +78,11 @@ rm -rf \
rm -rf \
/usr/share/doc/
## /boot is not necessary. We've already created our initrd.
## /boot is now the preferred mount point for systemd and BLS:
## https://uapi-group.org/specifications/specs/boot_loader_specification/#mount-points
## However, its content are no longer necessary, since we've already created our initrd.
# shellcheck disable=SC2114
rm -rf /boot
rm -rf /boot/*
## Not sure where this comes from, but it's not useful.
rm -rf /.cache