Created attachment 582960 [details, diff] Patch to add nvme support to lilo I've recently upgraded some disks to nvme to find that lilo is not able to install itself on it. I found a user patch at https://www.linuxquestions.org/questions/slackware-installation-40/installing-with-lilo-and-nvme-4175624630/ I've tested it and it works, so I'm attaching the relevant patch.
I just tested it and works fine.
Building a new developer machine, and can confirm the attached patch allows me to boot from a small Intel Optane M.2 drive.
(In reply to Joshua Kinard from comment #2) > Building a new developer machine, and can confirm the attached patch allows > me to boot from a small Intel Optane M.2 drive. Could you commit since you can test please? All of my NVME-equipped machines are EFI stub.
(In reply to Tony Vroon from comment #3) > (In reply to Joshua Kinard from comment #2) > > Building a new developer machine, and can confirm the attached patch allows > > me to boot from a small Intel Optane M.2 drive. > > Could you commit since you can test please? > All of my NVME-equipped machines are EFI stub. The -fno-common thing w/ gcc-10 has me stumped on lilo. The code is really hard to follow and I suspect there's some nested ifdef mess going on that makes using 'extern' the right way more difficult than it at first appears. I'll re-install gcc-9 and try again in a bit.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d5f9c57fe506f3c38fa8b4e939fc1c1a28c621a2 commit d5f9c57fe506f3c38fa8b4e939fc1c1a28c621a2 Author: Joshua Kinard <kumba@gentoo.org> AuthorDate: 2020-07-31 04:08:05 +0000 Commit: Joshua Kinard <kumba@gentoo.org> CommitDate: 2020-07-31 04:08:45 +0000 sys-boot/lilo: EAPI 7 and add NVME support Signed-off-by: Joshua Kinard <kumba@gentoo.org> Closes: https://bugs.gentoo.org/689940 Package-Manager: Portage-3.0.1, Repoman-2.3.23 .../lilo/files/lilo-24.2-add-nvme-support.patch | 70 ++++++++++++++++++++++ sys-boot/lilo/lilo-24.2.ebuild | 10 +++- 2 files changed, 77 insertions(+), 3 deletions(-)