[Bug 2039468] Re: flash-kernel can't be properly disabled
Juerg Haefliger
2039468 at bugs.launchpad.net
Tue Oct 17 06:11:03 UTC 2023
I just want to disable flash-kernel manually as I'm testing/installing
different kernels and don't want it to run after every package
installation.
The man page says I can do that but the code won't let me, so it's
broken. Looking at the code, it does the correct thing if env variable
FK_MACHINE == none so should also exit 0 after echo none > /etc/flash-
kernel/machine.
I've opened this but it probably doesn't go anywhere:
https://salsa.debian.org/installer-team/flash-kernel/-/merge_requests/51
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to flash-kernel in Ubuntu.
https://bugs.launchpad.net/bugs/2039468
Title:
flash-kernel can't be properly disabled
Status in flash-kernel package in Ubuntu:
New
Bug description:
Per the man page:
/etc/flash-kernel/machine
If present this can be used to override the machine autodetection. The contents must be a
string which matches an entry in the database. Or `none' to disable flash-kernel.
However, if that file contains 'none, flash-kernel bombs out with a
non-0 exit status:
$ cat /etc/flash-kernel/machine
none
$ sudo flash-kernel
Unsupported platform 'none'.
$ echo $?
1
If disabled, the exit status should be 0. Otherwise installation of
packages that call flash-kernel in a postinst hook will fail.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/flash-kernel/+bug/2039468/+subscriptions
More information about the foundations-bugs
mailing list