ALT Linux Bugzilla
– Attachment 14057 Details for
Bug 41959
grub-efi-autoupdate для removable
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
[patch]
EFI/BOOT/grub.cfg такой же признак removable, как и EFI/BOOT/grub*.efi
0001-grub-efi-autoupdate-also-set-REMOVABLE-if-BOOT-EFI-g.patch (text/plain), 1.18 KB, created by
Антон Мидюков
on 2023-08-11 12:10:23 MSK
(
hide
)
Description:
EFI/BOOT/grub.cfg такой же признак removable, как и EFI/BOOT/grub*.efi
Filename:
MIME Type:
Creator:
Антон Мидюков
Created:
2023-08-11 12:10:23 MSK
Size:
1.18 KB
patch
obsolete
>From 3a053ddfc83684145e4bb3149d60fca2ef034c41 Mon Sep 17 00:00:00 2001 >From: Anton Midyukov <antohami@altlinux.org> >Date: Fri, 11 Aug 2023 15:36:23 +0700 >Subject: [PATCH] grub-efi-autoupdate: also set GRUB_REMOVABLE, if > /BOOT/EFI/grub.cfg is exist > >If shim is not installed, then /BOOT/EFI/grub*.efi will be missing. >grub will be named boot*.efi. However, /BOOT/EFI/grub.cfg may exist. >See: https://bugzilla.altlinux.org/41959 > >Signed-off-by: Anton Midyukov <antohami@altlinux.org> >--- > grub-efi-autoupdate | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > >diff --git a/grub-efi-autoupdate b/grub-efi-autoupdate >index 844788721..f10967fa2 100755 >--- a/grub-efi-autoupdate >+++ b/grub-efi-autoupdate >@@ -25,7 +25,8 @@ GRUB_REMOVABLE= > > if ! stat $EFI_DIR/EFI/$DIST/grub*.efi > /dev/null 2>&1; then > echo "$EFI_DIR/EFI/$DIST/grub*.efi is missing, not fatal yet." >- if ! stat $EFI_DIR/EFI/BOOT/grub*.efi > /dev/null 2>&1; then >+ if ! stat $EFI_DIR/EFI/BOOT/grub*.efi > /dev/null 2>&1 && >+ ! stat $EFI_DIR/EFI/BOOT/grub.cfg > /dev/null 2>&1; then > echo > echo "$EFI_DIR/EFI/BOOT/grub*.efi is missing too. Fatal." > echo "Nothing to update. Please run: grub-install && grub-efi-autoupdate" >-- >2.33.8 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 41959
: 14057 |
16855