Closed vjr closed 2 years ago
Fixes #205
Tested with mutiple Windows/Linux installations on the same drive and also by running and comparing command output lsb_release
with and without the -u
option after editing /etc/upstream-release/lsb-release
to temporarily set the ID to lowercase ubuntu
The main elementary grub boot entry is now elementary
instead of Elementary
Silly me... fixing this PR asap...
Hm, thinking about this more, does this mean our GRUB configuration is using ID
where it should be using PRETTY_NAME
? Would it make more sense to resolve that in our GRUB so we don't have to carry another patch here?
Is this PR resulting in addition of another patch to upstream package?
I guess I could look into using PRETTY_NAME on the grub side of things, give me a few days.
@danrabbit there is already a patched lsb-focal-patched
branch to which this PR adds a diff to the existing lsb_release.py
modifications so no new patch file being added.
Do we really want to use PRETTY_NAME
still? That would be a simple change to /etc/default/grub
to use the -d
option instead of -i
passed to lsb_release
to set the GRUB_DISTRIBUTOR
var which I can create a PR if you want.
It's a matter of whether you want to show just elementary
in the grub boot menu as in previous releases or elementary OS 6 Odin
going forward, so which is it?
Going to close this in favour of #222 . I don't like the idea of changing what lsb_release
returns.
There may be random scripts online that target elementary and use lsb_release
(and the specific casing it returns) to detect elementary.
Fixes #205