LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - Installation
User Name
Password
Slackware - Installation This forum is for the discussion of installation issues with Slackware.

Notices


Reply
  Search this Thread
Old 01-27-2022, 03:35 PM   #1
enine
Senior Member
 
Registered: Nov 2003
Distribution: Slackʍɐɹǝ
Posts: 1,486
Blog Entries: 4

Rep: Reputation: 282Reputation: 282Reputation: 282
-current on laptop with UEFI doesn't prompt for elilo


Actually have somewhat modern hardware now and its throwing me off here.

Turned off secureboot like usual, but here's my issue, bios seems to allow only allow external boot when in legacy and hdd only when in uefi mode.

So to book the slackware installer I have t be in leagcy so I'm prompted to install lilo. But in order to boot the hdd I have to switch back to UEFT as there is no hdd boot in legacy and so then it fails to boot lilo. catch 22 situation
Is there a trick I'm missing here?

Hardware is a Dell Latitude 7290 https://www.dell.com/p/latitude-12-7...n&s=bsd&~ck=mn

Last edited by enine; 01-27-2022 at 03:38 PM.
 
Old 01-27-2022, 11:22 PM   #2
Jan K.
Member
 
Registered: Apr 2019
Location: Esbjerg
Distribution: Windows 7...
Posts: 773

Rep: Reputation: 489Reputation: 489Reputation: 489Reputation: 489Reputation: 489
A trick? Isn't the slackbook description good enough for booting under uefi?

https://docs.slackware.com/howtos:sl..._uefi_hardware
 
Old 01-28-2022, 01:21 AM   #3
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,463
Blog Entries: 7

Rep: Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561
-current on laptop with UEFI doesn't prompt for elilo

Put it into UEFI mode, insert your CD or USB stick, reboot and press F12 as soon as the Dell logo appears. You should get a boot menu which shows all bootable media. Then you can boot and install.

Leave secure boot off.

Last edited by rkelsen; 01-28-2022 at 01:29 AM.
 
Old 01-28-2022, 01:47 AM   #4
enine
Senior Member
 
Registered: Nov 2003
Distribution: Slackʍɐɹǝ
Posts: 1,486

Original Poster
Blog Entries: 4

Rep: Reputation: 282Reputation: 282Reputation: 282
Quote:
Originally Posted by Jan K. View Post
A trick? Isn't the slackbook description good enough for booting under uefi?

https://docs.slackware.com/howtos:sl..._uefi_hardware
So the Slackdock seems to be a bit dated since it talks about creating bootable efi media and there is has been the script in extra to make a bootable usb for a while now but it doesn't give much details on the actual install. My other two systems would just get to the lilo portion and say "hey i see you have uefi, use using elilo instead" or something like that.

the first line in the doc "Slackware setup supports UEFI installs. To get Slackware to boot on UEFI machines, bypass the LILO installation and select ELILO installation when prompted during the install. "

I don't get an elilo prompt it goes straight to lilo

Last edited by enine; 01-28-2022 at 01:50 AM.
 
Old 01-28-2022, 01:48 AM   #5
enine
Senior Member
 
Registered: Nov 2003
Distribution: Slackʍɐɹǝ
Posts: 1,486

Original Poster
Blog Entries: 4

Rep: Reputation: 282Reputation: 282Reputation: 282
Quote:
Originally Posted by rkelsen View Post
Put it into UEFI mode, insert your CD or USB stick, reboot and press F12 as soon as the Dell logo appears. You should get a boot menu which shows all bootable media. Then you can boot and install.

Leave secure boot off.
Secureboot is off.
If UEFI mode is enabled in bios f12 doesn't allow booting from usb and in the bios when you enable UEFI it tells you that it won't allow booting from USB. So its slightly different than earlier ones.
 
Old 01-28-2022, 02:57 AM   #6
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,463
Blog Entries: 7

Rep: Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561
-current on laptop with UEFI doesn't prompt for elilo

Does it have Windows on it?

If so, you could boot into Windows, assign a drive letter to the EFI partition using DiskPart and mount it. Then copy rEFInd onto it and use that to boot any media.
 
Old 01-28-2022, 05:42 AM   #7
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,383

Rep: Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594
How did you put the iso onto the usb? Do you have the option to boot from file in bios/firmware boot menu?

Last edited by colorpurple21859; 01-28-2022 at 05:48 AM.
 
Old 01-28-2022, 05:46 AM   #8
enine
Senior Member
 
Registered: Nov 2003
Distribution: Slackʍɐɹǝ
Posts: 1,486

Original Poster
Blog Entries: 4

Rep: Reputation: 282Reputation: 282Reputation: 282
Quote:
Originally Posted by rkelsen View Post
Does it have Windows on it?

If so, you could boot into Windows, assign a drive letter to the EFI partition using DiskPart and mount it. Then copy rEFInd onto it and use that to boot any media.
No, I have already re-partitioned.
 
Old 01-28-2022, 05:48 AM   #9
enine
Senior Member
 
Registered: Nov 2003
Distribution: Slackʍɐɹǝ
Posts: 1,486

Original Poster
Blog Entries: 4

Rep: Reputation: 282Reputation: 282Reputation: 282
Quote:
Originally Posted by colorpurple21859 View Post
Do you have the option to boot from file in bios/firmware boot menu?
When UEFI is enabled I can specify a file to boot from. The problem I have is getting the Slackware setup script to skip lilo and install elilo while booted with uefi disabled to put the elilo files in the partition
 
Old 01-28-2022, 06:58 AM   #10
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,383

Rep: Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594
let see if I have this right,
secure boot disabled, uefi enabled, legacy mode disabled, using a 64 bit iso,
able to boot from file the iso /efi/boot/bootx64.efi
drive type gpt, the efi partition formatted fat32, flagged esp, mounted at /boot/efi when setting up partitions
doesn't give the option to install elilo.
 
Old 01-28-2022, 07:51 AM   #11
enine
Senior Member
 
Registered: Nov 2003
Distribution: Slackʍɐɹǝ
Posts: 1,486

Original Poster
Blog Entries: 4

Rep: Reputation: 282Reputation: 282Reputation: 282
Quote:
Originally Posted by colorpurple21859 View Post
let see if I have this right,
secure boot disabled, uefi enabled, legacy mode disabled, using a 64 bit iso,
able to boot from file the iso /efi/boot/bootx64.efi
drive type gpt, the efi partition formatted fat32, flagged esp, mounted at /boot/efi when setting up partitions
doesn't give the option to install elilo.
This laptop, if UEFI us enabled/legacy disabled it will not boot from USB, it doesn't have the option or allow it, no no, it can't boot from /efi/boot/bootx64.efi on the USB flash drive.
To boot from USB flash I have to disable UEFI/enable legacy and then I can boot from USB, partition and flash, run setup but it just wants to install lilo.

Thats where my issue is, it appears UEFI must be enabled for the installer to prompt elilo, but when uefi is enabled I can't boot off the usb to run the installer.

Ok, I guess I can boot legacy from USB, make the EFI partition, then manually copy the bootx64.efi to the EFI partition then go back in the bios and change to UEFI enabled and run setup and just skip lilo since I've alreayd manually put the efi file there.

Last edited by enine; 01-28-2022 at 08:01 AM.
 
Old 01-28-2022, 09:41 AM   #12
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,383

Rep: Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594
At the lilo install screen, open a second terminal,
Mount the efi partition to /mnt/boot/efi if not mounted
Code:
chroot /mnt
grub-install —target=x86_64-efi
grub-mkconfig -o /boot/grub/grub.cfg
Will get error about efivars. Exit out go back to setup screen finish configuration and reboot.
Use the boot from file function to boot efi/slackware/grubx64-efi. Reinstall/install grub/elilo
and/or use efibootmgr to register the efi/slackware/grubx64.efi with the bios/firmware

Last edited by colorpurple21859; 01-28-2022 at 10:50 AM.
 
Old 01-28-2022, 11:25 AM   #13
Gordie
Member
 
Registered: Aug 2007
Location: Nolalu, Ontario, Canada
Distribution: Slackware64-Current
Posts: 871

Rep: Reputation: 364Reputation: 364Reputation: 364Reputation: 364
My laptop acts sorta like that.

Code:
BIOS
          vendor: Hewlett-Packard
          physical id: b
          version: 68SCF Ver. F.06
          date: 07/28/2011
When I change BIOS to boot EFI I get a README that explains that efi is considered experimental and they do not support it. I have tried every possible thing I have found on the NET (especially this Forum) and nothing works. With a gpt partition table and my BIOS set to boot efi there is an awkward silence followed by my Lilo screen and a normal legacy boot.
Not what I expected at all
 
Old 01-28-2022, 04:29 PM   #14
enine
Senior Member
 
Registered: Nov 2003
Distribution: Slackʍɐɹǝ
Posts: 1,486

Original Poster
Blog Entries: 4

Rep: Reputation: 282Reputation: 282Reputation: 282
I managed to get it
Manually create the efi partition and copied elilo to it.
Then in the bios setup re-enable UEFI and then point it to that file and reboot.
Then it will bring up the elilo boot menu and elilo allows choosing to boot from an external USB (so its after the bios boot selection which does not).
Was a pain, but works now.
 
2 members found this post helpful.
Old 01-28-2022, 04:31 PM   #15
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,463
Blog Entries: 7

Rep: Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561
Quote:
Originally Posted by enine View Post
Ok, I guess I can boot legacy from USB, make the EFI partition, then manually copy the bootx64.efi to the EFI partition then go back in the bios and change to UEFI enabled and run setup
Yeah, that'll work. Rename elilo-x86_64.efi to bootx64.efi and put it under EFI/Boot on your EFI partition.

You can also copy the kernel and initrd into the same directory on the EFI partition and point eLILO to them. The files you need are 'huge.s' and 'initrd.img' from the EFI directory of the Slackware tree.

This elilo.conf will then boot the Slackware installer:
Code:
chooser=simple
timeout=30
prompt
default=installer

image=huge.s
        label=installer
        read-only
        append="vga=normal load_ramdisk=1 prompt_ramdisk=0 ro printk.time=0 SLACK_KERNEL=huge.s"
        initrd=initrd.img
The installer will then allow you to choose a source for installation, and should offer to install elilo.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
UEFI Class 3 :: To use UEFI, or not to use UEFI? jheengut Slackware 19 12-30-2020 09:24 AM
[SOLVED] UEFI installation - elilo does not prompt when I skipped lilo shai-hulud Slackware 15 06-09-2019 08:11 AM
[SOLVED] Booting in blind mode in laptop with elilo and uefi. Its a three boot computer pedro.herrero Slackware - Installation 3 01-19-2019 03:50 PM
lilo x elilo x grup2 x UEFI afreitascs Slackware 5 09-09-2012 10:55 AM
UEFI PXE server elilo.conf configuration miszum Linux - Networking 2 08-05-2011 11:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - Installation

All times are GMT -5. The time now is 11:03 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration