[Bug 2039468] Re: flash-kernel can't be properly disabled
Heinrich Schuchardt
2039468 at bugs.launchpad.net
Mon Oct 16 16:59:28 UTC 2023
Hello Juerg,
get_machine() and its caller would have to be changed in file
'functions'.
I wonder why you have to use 'none' in /etc/flash-kernel/machine. Could
you, please, describe your usage scenario. In which situation do you
have neither a valid value in /proc/device-tree/model nor in /etc/flash-
kernel/machine? What would write 'none' to /etc/flash-kernel/machine?
Would it help to return $? = 0 if /proc/device-tree/model does not
exist? This would allow to use the same image (with flash-kernel) both
on a system with ACPI as well as on one with a device-tree.
Best regards
Heinrich
--
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