Github messages for voidlinux
 help / color / mirror / Atom feed
* [ISSUE] efibootmgr: post-remove kernel hook error when removing old kernel package
@ 2019-07-15 15:15 voidlinux-github
  2019-07-15 15:16 ` voidlinux-github
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: voidlinux-github @ 2019-07-15 15:15 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 844 bytes --]

New issue by ackalker on void-packages repository

https://github.com/void-linux/void-packages/issues/13133
Description: ### System

* xuname:  
  Void 5.1.17_1 x86_64 GenuineIntel uptodate rrrrmdFFFFFFFFF
* package:  
  efibootmgr-17_3

### Expected behavior

When removing old kernel package (using for instance `vkpurge rm`), the post-install kernel hooks should finish without any errors due to bugs.

### Actual behavior

When I removed an old kernel on my system using `vkpurge rm`, the 50-efibootmgr post-install kernel hook produced the error: `efibootmgr: option requires an argument -- 'b'`

### Steps to reproduce the behavior

- On a system with multiple kernel packages installed, use `xbps-remove` or `vkpurge rm` to remove a kernel package version which is older than the latest installed `major.minor` version.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: efibootmgr: post-remove kernel hook error when removing old kernel package
  2019-07-15 15:15 [ISSUE] efibootmgr: post-remove kernel hook error when removing old kernel package voidlinux-github
@ 2019-07-15 15:16 ` voidlinux-github
  2019-07-15 15:17 ` voidlinux-github
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: voidlinux-github @ 2019-07-15 15:16 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 2733 bytes --]

New comment by ackalker on void-packages repository

https://github.com/void-linux/void-packages/issues/13133#issuecomment-511445008
Comment:
Output of running `vkpurge rm ...` on my system last afternoon:

```
# vkpurge rm 4.19.57_1
Removing kernel 4.19.57_1...
Running pre-remove kernel hook: 10-dkms...
dkms: removing: nvidia 430.14 (kernel-4.19.57_1) (x86_64)
dkms: removing: virtualbox-ose 6.0.8 (kernel-4.19.57_1) (x86_64)
Removing /boot/vmlinuz-4.19.57_1...
Removing /usr/lib/modules/4.19.57_1...
Running post-remove kernel hook: 20-dracut...
Running post-remove kernel hook: 50-efibootmgr...
efibootmgr: option requires an argument -- 'b'
efibootmgr version 17
usage: efibootmgr [options]
	-a | --active         sets bootnum active
	-A | --inactive       sets bootnum inactive
	-b | --bootnum XXXX   modify BootXXXX (hex)
	-B | --delete-bootnum delete bootnum
	-c | --create         create new variable bootnum and add to bootorder
	-C | --create-only	create new variable bootnum and do not add to bootorder
	-D | --remove-dups	remove duplicate values from BootOrder
	-d | --disk disk       (defaults to /dev/sda) containing loader
	-r | --driver         Operate on Driver variables, not Boot Variables.
	-e | --edd [1|3|-1]   force EDD 1.0 or 3.0 creation variables, or guess
	-E | --device num      EDD 1.0 device number (defaults to 0x80)
	-g | --gpt            force disk with invalid PMBR to be treated as GPT
	-i | --iface name     create a netboot entry for the named interface
	-l | --loader name     (defaults to "\EFI\void\grubx64.efi")
	-L | --label label     Boot manager display label (defaults to "Void Linux (GRUB2)")
	-m | --mirror-below-4G t|f mirror memory below 4GB
	-M | --mirror-above-4G X percentage memory to mirror above 4GB
	-n | --bootnext XXXX   set BootNext to XXXX (hex)
	-N | --delete-bootnext delete BootNext
	-o | --bootorder XXXX,YYYY,ZZZZ,...     explicitly set BootOrder (hex)
	-O | --delete-bootorder delete BootOrder
	-p | --part part        partition containing loader (defaults to 1 on partitioned devices)
	-q | --quiet            be quiet
	-t | --timeout seconds  set boot manager timeout waiting for user input.
	-T | --delete-timeout   delete Timeout.
	-u | --unicode | --UCS-2  handle extra args as UCS-2 (default is ASCII)
	-v | --verbose          print additional information
	-V | --version          return version and exit
	-w | --write-signature  write unique sig to MBR if needed
	-y | --sysprep          Operate on SysPrep variables, not Boot Variables.
	-@ | --append-binary-args file  append extra args from file (use "-" for stdin)
	-h | --help             show help/usage
Removing /usr/src/kernel-headers-4.19.57_1...
```

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: efibootmgr: post-remove kernel hook error when removing old kernel package
  2019-07-15 15:15 [ISSUE] efibootmgr: post-remove kernel hook error when removing old kernel package voidlinux-github
  2019-07-15 15:16 ` voidlinux-github
@ 2019-07-15 15:17 ` voidlinux-github
  2019-07-15 15:18 ` voidlinux-github
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: voidlinux-github @ 2019-07-15 15:17 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 3812 bytes --]

New comment by ackalker on void-packages repository

https://github.com/void-linux/void-packages/issues/13133#issuecomment-511445008
Comment:
Output of running `efibootmgr -v`, then `vkpurge rm ...` on my system last afternoon:

```
# efibootmgr -v
Password: 
BootCurrent: 0000
Timeout: 1 seconds
BootOrder: 0007,0000,0006,0001,0008,0005
Boot0000* Void Linux with kernel 5.1	HD(3,MBR,0x91ec9a34,0xde94800,0x100000)/File(\vmlinuz-5.1.18_1)r.o.o.t.=./.d.e.v./.s.d.a.2. .q.u.i.e.t. .r.d...l.u.k.s.=.0. .r.d...l.v.m.=.0. .r.d...m.d.=.0. .r.d...d.m.=.0. .i.n.i.t.r.d.=./.i.n.i.t.r.a.m.f.s.-.5...1...1.8._.1...i.m.g.
Boot0001* Void Linux with kernel 4.19	HD(3,MBR,0x91ec9a34,0xde94800,0x100000)/File(\vmlinuz-4.19.59_1)r.o.o.t.=./.d.e.v./.s.d.a.2. .q.u.i.e.t. .r.d...l.u.k.s.=.0. .r.d...l.v.m.=.0. .r.d...m.d.=.0. .r.d...d.m.=.0. .i.n.i.t.r.d.=./.i.n.i.t.r.a.m.f.s.-.4...1.9...5.9._.1...i.m.g.
Boot0005* UEFI: Built-in EFI Shell 	VenMedia(5023b95c-db26-429b-a648-bd47664c8012)..BO
Boot0006* rEFInd Boot Manager	HD(3,MBR,0x91ec9a34,0xde94800,0x100000)/File(\EFI\refind\refind_x64.efi)
Boot0007* UEFI OS	HD(3,MBR,0x91ec9a34,0xde94800,0x100000)/File(\EFI\BOOT\BOOTX64.EFI)..BO
Boot0008* UEFI OS	HD(1,GPT,3af143d1-8991-4497-a8c1-085821ce8113,0x3f,0x201c84)/File(\EFI\BOOT\BOOTX64.EFI)..BO
# vkpurge rm 4.19.57_1
Removing kernel 4.19.57_1...
Running pre-remove kernel hook: 10-dkms...
dkms: removing: nvidia 430.14 (kernel-4.19.57_1) (x86_64)
dkms: removing: virtualbox-ose 6.0.8 (kernel-4.19.57_1) (x86_64)
Removing /boot/vmlinuz-4.19.57_1...
Removing /usr/lib/modules/4.19.57_1...
Running post-remove kernel hook: 20-dracut...
Running post-remove kernel hook: 50-efibootmgr...
efibootmgr: option requires an argument -- 'b'
efibootmgr version 17
usage: efibootmgr [options]
	-a | --active         sets bootnum active
	-A | --inactive       sets bootnum inactive
	-b | --bootnum XXXX   modify BootXXXX (hex)
	-B | --delete-bootnum delete bootnum
	-c | --create         create new variable bootnum and add to bootorder
	-C | --create-only	create new variable bootnum and do not add to bootorder
	-D | --remove-dups	remove duplicate values from BootOrder
	-d | --disk disk       (defaults to /dev/sda) containing loader
	-r | --driver         Operate on Driver variables, not Boot Variables.
	-e | --edd [1|3|-1]   force EDD 1.0 or 3.0 creation variables, or guess
	-E | --device num      EDD 1.0 device number (defaults to 0x80)
	-g | --gpt            force disk with invalid PMBR to be treated as GPT
	-i | --iface name     create a netboot entry for the named interface
	-l | --loader name     (defaults to "\EFI\void\grubx64.efi")
	-L | --label label     Boot manager display label (defaults to "Void Linux (GRUB2)")
	-m | --mirror-below-4G t|f mirror memory below 4GB
	-M | --mirror-above-4G X percentage memory to mirror above 4GB
	-n | --bootnext XXXX   set BootNext to XXXX (hex)
	-N | --delete-bootnext delete BootNext
	-o | --bootorder XXXX,YYYY,ZZZZ,...     explicitly set BootOrder (hex)
	-O | --delete-bootorder delete BootOrder
	-p | --part part        partition containing loader (defaults to 1 on partitioned devices)
	-q | --quiet            be quiet
	-t | --timeout seconds  set boot manager timeout waiting for user input.
	-T | --delete-timeout   delete Timeout.
	-u | --unicode | --UCS-2  handle extra args as UCS-2 (default is ASCII)
	-v | --verbose          print additional information
	-V | --version          return version and exit
	-w | --write-signature  write unique sig to MBR if needed
	-y | --sysprep          Operate on SysPrep variables, not Boot Variables.
	-@ | --append-binary-args file  append extra args from file (use "-" for stdin)
	-h | --help             show help/usage
Removing /usr/src/kernel-headers-4.19.57_1...
```

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: efibootmgr: post-remove kernel hook error when removing old kernel package
  2019-07-15 15:15 [ISSUE] efibootmgr: post-remove kernel hook error when removing old kernel package voidlinux-github
  2019-07-15 15:16 ` voidlinux-github
  2019-07-15 15:17 ` voidlinux-github
@ 2019-07-15 15:18 ` voidlinux-github
  2019-07-15 15:36 ` voidlinux-github
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: voidlinux-github @ 2019-07-15 15:18 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 3800 bytes --]

New comment by ackalker on void-packages repository

https://github.com/void-linux/void-packages/issues/13133#issuecomment-511445008
Comment:
Output of running `efibootmgr -v`, then `vkpurge rm ...` on my system last afternoon:

```
# efibootmgr -v
BootCurrent: 0000
Timeout: 1 seconds
BootOrder: 0007,0000,0006,0001,0008,0005
Boot0000* Void Linux with kernel 5.1	HD(3,MBR,0x91ec9a34,0xde94800,0x100000)/File(\vmlinuz-5.1.18_1)r.o.o.t.=./.d.e.v./.s.d.a.2. .q.u.i.e.t. .r.d...l.u.k.s.=.0. .r.d...l.v.m.=.0. .r.d...m.d.=.0. .r.d...d.m.=.0. .i.n.i.t.r.d.=./.i.n.i.t.r.a.m.f.s.-.5...1...1.8._.1...i.m.g.
Boot0001* Void Linux with kernel 4.19	HD(3,MBR,0x91ec9a34,0xde94800,0x100000)/File(\vmlinuz-4.19.59_1)r.o.o.t.=./.d.e.v./.s.d.a.2. .q.u.i.e.t. .r.d...l.u.k.s.=.0. .r.d...l.v.m.=.0. .r.d...m.d.=.0. .r.d...d.m.=.0. .i.n.i.t.r.d.=./.i.n.i.t.r.a.m.f.s.-.4...1.9...5.9._.1...i.m.g.
Boot0005* UEFI: Built-in EFI Shell 	VenMedia(5023b95c-db26-429b-a648-bd47664c8012)..BO
Boot0006* rEFInd Boot Manager	HD(3,MBR,0x91ec9a34,0xde94800,0x100000)/File(\EFI\refind\refind_x64.efi)
Boot0007* UEFI OS	HD(3,MBR,0x91ec9a34,0xde94800,0x100000)/File(\EFI\BOOT\BOOTX64.EFI)..BO
Boot0008* UEFI OS	HD(1,GPT,3af143d1-8991-4497-a8c1-085821ce8113,0x3f,0x201c84)/File(\EFI\BOOT\BOOTX64.EFI)..BO
# vkpurge rm 4.19.57_1
Removing kernel 4.19.57_1...
Running pre-remove kernel hook: 10-dkms...
dkms: removing: nvidia 430.14 (kernel-4.19.57_1) (x86_64)
dkms: removing: virtualbox-ose 6.0.8 (kernel-4.19.57_1) (x86_64)
Removing /boot/vmlinuz-4.19.57_1...
Removing /usr/lib/modules/4.19.57_1...
Running post-remove kernel hook: 20-dracut...
Running post-remove kernel hook: 50-efibootmgr...
efibootmgr: option requires an argument -- 'b'
efibootmgr version 17
usage: efibootmgr [options]
	-a | --active         sets bootnum active
	-A | --inactive       sets bootnum inactive
	-b | --bootnum XXXX   modify BootXXXX (hex)
	-B | --delete-bootnum delete bootnum
	-c | --create         create new variable bootnum and add to bootorder
	-C | --create-only	create new variable bootnum and do not add to bootorder
	-D | --remove-dups	remove duplicate values from BootOrder
	-d | --disk disk       (defaults to /dev/sda) containing loader
	-r | --driver         Operate on Driver variables, not Boot Variables.
	-e | --edd [1|3|-1]   force EDD 1.0 or 3.0 creation variables, or guess
	-E | --device num      EDD 1.0 device number (defaults to 0x80)
	-g | --gpt            force disk with invalid PMBR to be treated as GPT
	-i | --iface name     create a netboot entry for the named interface
	-l | --loader name     (defaults to "\EFI\void\grubx64.efi")
	-L | --label label     Boot manager display label (defaults to "Void Linux (GRUB2)")
	-m | --mirror-below-4G t|f mirror memory below 4GB
	-M | --mirror-above-4G X percentage memory to mirror above 4GB
	-n | --bootnext XXXX   set BootNext to XXXX (hex)
	-N | --delete-bootnext delete BootNext
	-o | --bootorder XXXX,YYYY,ZZZZ,...     explicitly set BootOrder (hex)
	-O | --delete-bootorder delete BootOrder
	-p | --part part        partition containing loader (defaults to 1 on partitioned devices)
	-q | --quiet            be quiet
	-t | --timeout seconds  set boot manager timeout waiting for user input.
	-T | --delete-timeout   delete Timeout.
	-u | --unicode | --UCS-2  handle extra args as UCS-2 (default is ASCII)
	-v | --verbose          print additional information
	-V | --version          return version and exit
	-w | --write-signature  write unique sig to MBR if needed
	-y | --sysprep          Operate on SysPrep variables, not Boot Variables.
	-@ | --append-binary-args file  append extra args from file (use "-" for stdin)
	-h | --help             show help/usage
Removing /usr/src/kernel-headers-4.19.57_1...
```

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: efibootmgr: post-remove kernel hook error when removing old kernel package
  2019-07-15 15:15 [ISSUE] efibootmgr: post-remove kernel hook error when removing old kernel package voidlinux-github
                   ` (2 preceding siblings ...)
  2019-07-15 15:18 ` voidlinux-github
@ 2019-07-15 15:36 ` voidlinux-github
  2019-07-15 15:37 ` voidlinux-github
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: voidlinux-github @ 2019-07-15 15:36 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 698 bytes --]

New comment by ackalker on void-packages repository

https://github.com/void-linux/void-packages/issues/13133#issuecomment-511453524
Comment:
I think the logic in the kernel scripts for this package may need some reworking to fix this reliably. It all depends on whether we should create boot entries for all installed kernels (which might hit some limit on maximum number of boot entries in some UEFI implementations) or support only one kernel per `major.minor` series.
Perhaps create another configuration variable in `/etc/default/efibootmgr-kkernel-hook` to switch between these 2 behaviours, defaulting to the current behaviour of maintaining one menu entry per kernel `major.minor` series.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: efibootmgr: post-remove kernel hook error when removing old kernel package
  2019-07-15 15:15 [ISSUE] efibootmgr: post-remove kernel hook error when removing old kernel package voidlinux-github
                   ` (3 preceding siblings ...)
  2019-07-15 15:36 ` voidlinux-github
@ 2019-07-15 15:37 ` voidlinux-github
  2019-07-15 15:40 ` voidlinux-github
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: voidlinux-github @ 2019-07-15 15:37 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 697 bytes --]

New comment by ackalker on void-packages repository

https://github.com/void-linux/void-packages/issues/13133#issuecomment-511453524
Comment:
I think the logic in the kernel scripts for this package may need some reworking to fix this reliably. It all depends on whether we should create boot entries for all installed kernels (which might hit some limit on maximum number of boot entries in some UEFI implementations) or support only one kernel per `major.minor` series.
Perhaps create another configuration variable in `/etc/default/efibootmgr-kernel-hook` to switch between these 2 behaviours, defaulting to the current behaviour of maintaining one menu entry per kernel `major.minor` series.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: efibootmgr: post-remove kernel hook error when removing old kernel package
  2019-07-15 15:15 [ISSUE] efibootmgr: post-remove kernel hook error when removing old kernel package voidlinux-github
                   ` (4 preceding siblings ...)
  2019-07-15 15:37 ` voidlinux-github
@ 2019-07-15 15:40 ` voidlinux-github
  2019-07-15 15:41 ` voidlinux-github
  2021-03-17 13:55 ` [ISSUE] [CLOSED] " ericonr
  7 siblings, 0 replies; 9+ messages in thread
From: voidlinux-github @ 2019-07-15 15:40 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 645 bytes --]

New comment by ackalker on void-packages repository

https://github.com/void-linux/void-packages/issues/13133#issuecomment-511453524
Comment:
I think the logic in the kernel scripts for this package may need some reworking to fix this reliably. It all depends on whether we should create boot entries for all installed kernels (which might hit some limit on maximum number of boot entries in some UEFI implementations) or support only one kernel per `major.minor` series.
Perhaps create another configuration variable in `/etc/default/efibootmgr-kernel-hook` to switch between these 2 behaviours, defaulting to the current behaviour of course.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: efibootmgr: post-remove kernel hook error when removing old kernel package
  2019-07-15 15:15 [ISSUE] efibootmgr: post-remove kernel hook error when removing old kernel package voidlinux-github
                   ` (5 preceding siblings ...)
  2019-07-15 15:40 ` voidlinux-github
@ 2019-07-15 15:41 ` voidlinux-github
  2021-03-17 13:55 ` [ISSUE] [CLOSED] " ericonr
  7 siblings, 0 replies; 9+ messages in thread
From: voidlinux-github @ 2019-07-15 15:41 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 650 bytes --]

New comment by ackalker on void-packages repository

https://github.com/void-linux/void-packages/issues/13133#issuecomment-511453524
Comment:
I think the logic in the kernel hook scripts for this package may need some reworking to fix this reliably. It all depends on whether we should create boot entries for all installed kernels (which might hit some limit on maximum number of boot entries in some UEFI implementations) or support only one kernel per `major.minor` series.
Perhaps create another configuration variable in `/etc/default/efibootmgr-kernel-hook` to switch between these 2 behaviours, defaulting to the current behaviour of course.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [ISSUE] [CLOSED] efibootmgr: post-remove kernel hook error when removing old kernel package
  2019-07-15 15:15 [ISSUE] efibootmgr: post-remove kernel hook error when removing old kernel package voidlinux-github
                   ` (6 preceding siblings ...)
  2019-07-15 15:41 ` voidlinux-github
@ 2021-03-17 13:55 ` ericonr
  7 siblings, 0 replies; 9+ messages in thread
From: ericonr @ 2021-03-17 13:55 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 884 bytes --]

Closed issue by ackalker on void-packages repository

https://github.com/void-linux/void-packages/issues/13133

Description:
### System

* xuname:  
  Void 5.1.17_1 x86_64 GenuineIntel uptodate rrrrmdFFFFFFFFF
* package:  
  efibootmgr-17_3

### Expected behavior

When removing old kernel package (using for instance `vkpurge rm`), the post-install kernel hooks should finish without any errors due to bugs.

### Actual behavior

When I removed an old kernel on my system using `vkpurge rm`, the 50-efibootmgr post-install kernel hook produced the error: `efibootmgr: option requires an argument -- 'b'`

### Steps to reproduce the behavior

- On a system with multiple kernel packages installed, use `xbps-remove` or `vkpurge rm` to remove a kernel package version which is in the same `major.minor` range but older than the latest installed version in that range.

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2021-03-17 13:55 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-15 15:15 [ISSUE] efibootmgr: post-remove kernel hook error when removing old kernel package voidlinux-github
2019-07-15 15:16 ` voidlinux-github
2019-07-15 15:17 ` voidlinux-github
2019-07-15 15:18 ` voidlinux-github
2019-07-15 15:36 ` voidlinux-github
2019-07-15 15:37 ` voidlinux-github
2019-07-15 15:40 ` voidlinux-github
2019-07-15 15:41 ` voidlinux-github
2021-03-17 13:55 ` [ISSUE] [CLOSED] " ericonr

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).