LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-16-2023, 03:06 PM   #31
Windu
Member
 
Registered: Aug 2021
Distribution: Arch Linux, Debian, Slackware
Posts: 593

Rep: Reputation: Disabled

Quote:
Originally Posted by business_kid View Post
the day will come when it clears out and blacklists all keys in nvram. Then Alien's liveslak or slackware won't boot because it's key has been blacklisted.
As far as I understand it, the Microsoft signing keys that were used to sign vulnerable bootloader binaries will be blacklisted. As a consequence, those vulnerable bootloaders will no longer be allowed to boot your computer because its signing public key is gone.
But Alien Bon signs his bootloader with his own (non-microsoft) key, which is why you have to import his certificate (the public key) into the MOK. His certificate will therefore remain usable and liveslak ISOs remain bootable under Secure Boot.
 
1 members found this post helpful.
Old 05-16-2023, 03:15 PM   #32
enorbet
Senior Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys
Posts: 4,792

Rep: Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435
The next time I decide to upgrade and find no decent motherboards have CSM/Legacy included or force Secure Boot, I intend to resort to UEFItool (modern version of modbin as I understand it) and have my way with it.
Attached Thumbnails
Click image for larger version

Name:	Madness.gif
Views:	46
Size:	91.4 KB
ID:	41070  
 
Old 05-16-2023, 04:08 PM   #33
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,547

Rep: Reputation: 3399Reputation: 3399Reputation: 3399Reputation: 3399Reputation: 3399Reputation: 3399Reputation: 3399Reputation: 3399Reputation: 3399Reputation: 3399Reputation: 3399
Quote:
Originally Posted by enorbet View Post
The next time I decide to upgrade and find no decent motherboards have CSM/Legacy included or force Secure Boot, I intend to resort to UEFItool (modern version of modbin as I understand it) and have my way with it.
Usually, the Secure Boot only motherboards has no CSM/Legacy module in UEFI because I guess it makes no sense in this design.

So, your "or" is rather superfluous.
 
Old 05-16-2023, 05:11 PM   #34
pghvlaans
Member
 
Registered: Jan 2021
Distribution: Slackware64 {15.0,-current}, FreeBSD, stuff on QEMU
Posts: 458

Rep: Reputation: 366Reputation: 366Reputation: 366Reputation: 366
Quote:
Originally Posted by business_kid View Post
Then Alien's liveslak or slackware won't boot because it's key has been blacklisted. But I can boot windows 11 (hurray). I then do what exactly?
Surely, he'd acquire a new shim when and if that happens. This whole mess is just one more reason why Windows belongs on VMs and not bare metal, so far as I'm concerned.
 
1 members found this post helpful.
Old 05-16-2023, 05:28 PM   #35
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,547

Rep: Reputation: 3399Reputation: 3399Reputation: 3399Reputation: 3399Reputation: 3399Reputation: 3399Reputation: 3399Reputation: 3399Reputation: 3399Reputation: 3399Reputation: 3399
Quote:
Originally Posted by pghvlaans View Post
Surely, he'd acquire a new shim when and if that happens. This whole mess is just one more reason why Windows belongs on VMs and not bare metal, so far as I'm concerned.
In fact, all he will do will be the downloading of a new shim package from Fedora repos.

Anyway, considering the whole mess of Slackware's boot managers and kernels management, the replacing of 2 EFI binaries in the ESP would be rather a fart in the wind...

People, let's be honest. IF by the grace of Santa Claus, overnight all Windows users would start using Slackware, each day in this forum would be over 10000 new threads about broken boots.

And yes, I know about what I talk, because I have used various Microsoft software since I have built from scratch my first IBM PC/XT compatible. It was 40 years ago, or something. In fact, even before, because the first seen Microsoft software was games for a Z80 computer, also built from scratch. Lots of fun and soldering in that old times.

Hey, the people still do this from scratch. This video bellow made me remember of that old days.

https://www.youtube.com/watch?v=MW5lApN0gWc

Last edited by LuckyCyborg; 05-16-2023 at 06:24 PM.
 
Old 05-16-2023, 08:16 PM   #36
Pithium
Member
 
Registered: Jul 2014
Location: Far side of the Oregon Trail
Distribution: Slackware64 15.0
Posts: 508

Rep: Reputation: 586Reputation: 586Reputation: 586Reputation: 586Reputation: 586Reputation: 586
I dont think I'm old enough to say this yet... but back in my day bootloaders weren't this complicated.

https://www.youtube.com/watch?v=qpMvS1Q1sos
 
Old 05-17-2023, 08:53 AM   #37
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,398

Original Poster
Rep: Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336
Quote:
Originally Posted by Windu View Post
As far as I understand it, the Microsoft signing keys that were used to sign vulnerable bootloader binaries will be blacklisted. As a consequence, those vulnerable bootloaders will no longer be allowed to boot your computer because its signing public key is gone.
But Alien Bon signs his bootloader with his own (non-microsoft) key, which is why you have to import his certificate (the public key) into the MOK. His certificate will therefore remain usable and liveslak ISOs remain bootable under Secure Boot.
Aahh. If that's wrong, please correct it. If that's right, It nicely dispels all the FUD, and I can relax. In fact the only ones who get caught then are the the distros who sucked up to M$ in the first place and had their shim registered.

As for modern boxen not working on Legacy, they probably do work on legacy. You need
  1. the box set on legacy
  2. No gpt disks but at least one MBR one.
  3. An old fashioned boot loader.

Most folks forget the MBR formatted disks, and the old fashioned boot loader.

Last edited by business_kid; 05-17-2023 at 09:34 AM.
 
Old 05-17-2023, 09:54 AM   #38
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,398

Original Poster
Rep: Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336
Quote:
Originally Posted by Pithium View Post
I dont think I'm old enough to say this yet... but back in my day bootloaders weren't this complicated.

https://www.youtube.com/watch?v=qpMvS1Q1sos
I forgive you your youtube link

No bootloaders weren't that complicated but every other week you got the Form boot virus, or Ping Pong, or half a dozen others. I was lucky enough to avoid having my BIOS chip overwritten on pc & laptop because I ran a checker for the CIH boot virus on April 23rd. The thing would overwrite the BIOS on April 26th! If I had suffered those consequences it would have been very difficult for my business.
 
Old 05-17-2023, 10:20 PM   #39
enorbet
Senior Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys
Posts: 4,792

Rep: Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435
Maybe I've misunderstood you, business_kid, but I have two different disks, one NVME and the other an SATA "spinner", both formatted with GPT partitioning and between them they have 6 Linux operating systems that boot from LILO, not elilo, LILO.
 
Old 05-18-2023, 05:31 AM   #40
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,398

Original Poster
Rep: Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336
Quote:
Originally Posted by enorbet View Post
Maybe I've misunderstood you, business_kid, but I have two different disks, one NVME and the other an SATA "spinner", both formatted with GPT partitioning and between them they have 6 Linux operating systems that boot from LILO, not elilo, LILO.
You hardly have uefi in your BIOS, then?

EDIT: 40 Posts in this thread, with 53 "found this post useful" recommendations. Is that a record?

Last edited by business_kid; 05-18-2023 at 05:41 AM.
 
Old 05-18-2023, 06:40 AM   #41
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,647
Blog Entries: 19

Rep: Reputation: 4475Reputation: 4475Reputation: 4475Reputation: 4475Reputation: 4475Reputation: 4475Reputation: 4475Reputation: 4475Reputation: 4475Reputation: 4475Reputation: 4475
Quote:
Originally Posted by business_kid View Post

As for modern boxen not working on Legacy, they probably do work on legacy. You need
  1. the box set on legacy
  2. No gpt disks but at least one MBR one.
  3. An old fashioned boot loader.
It should work with gpt too, because gpt disks have a dummy mbr where you can load a small bootloader like LILO. It's a bit trickier with GRUB2 because only a stub goes in the mbr and the rest has to go somewhere else. On an mbr disk, it goes in the gap that's traditionally left between the mbr and the first partition, but on a gpt disk you need a separate first partition labelled as bios-boot and without a filesystem on it. Messy but doable.
 
2 members found this post helpful.
Old 05-18-2023, 08:24 AM   #42
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,065

Rep: Reputation: Disabled
Quote:
Originally Posted by hazel View Post
It should work with gpt too, because gpt disks have a dummy mbr where you can load a small bootloader like LILO. It's a bit trickier with GRUB2 because only a stub goes in the mbr and the rest has to go somewhere else. On an mbr disk, it goes in the gap that's traditionally left between the mbr and the first partition, but on a gpt disk you need a separate first partition labelled as bios-boot and without a filesystem on it. Messy but doable.
Doable, as you wrote, and not so messy. In the code snippet below extracted from the current Slint intaller EFI is set only it the directory /sys/firmware/efi exists at time of installation:
Code:
    gettext "Installing the GRUB bootloader..."
    # Install with --target=i386-pc except in case of a GPT if no BIOS boot partition is available
    # in the same drive as the root one, which is allowed in manual partitioning mode and EFI booting.
    echo
    INSTALLINLEGACYMODE="yes"
    if [ "$(lsblk -lno pttype "$DRIVEPATH"|head -n 1)" = "gpt" ] && \
    ! lsblk -lno parttypename|grep -q 'BIOS boot'; then
        unset INSTALLINLEGACYMODE
    fi
    if [ "$INSTALLINLEGACYMODE" ]; then
        chroot $SLINT grub-install --target=i386-pc "$DRIVEPATH" 1>>$INSTALL/log 2>>$INSTALL/errors
    fi
    # Install with --target=x86_64-efi except if there is is no ESP in the same drive as the root one.
    if [ "$AUTO" ] || [ -f $INSTALL/esppath ]; then
        if [ "$EFI" ]; then
            chroot $SLINT grub-install --target=x86_64-efi --bootloader-id=slint-$SLINTVERSION "$DRIVEPATH" 1>>$INSTALL/log 2>>$INSTALL/errors
        else
            chroot $SLINT grub-install --target=x86_64-efi --no-nvram --bootloader-id=slint-$SLINTVERSION "$DRIVEPATH" 1>>$INSTALL/log 2>>$INSTALL/errors
        fi
        cp  $SLINT/boot/efi/EFI/slint-$SLINTVERSION/grubx64.efi $SLINT/boot/efi/EFI/BOOT/BOOTx64.EFI
        echo "EFI\slint-$SLINTVERSION\grubx64" > /SLINT/boot/efi/startup.nsh
    fi
This way the installed system will boot in both EFI and Legacy modes regardless of the partition table type, except if the user chose to manually partition the drive but:
  • in case of a GPT did not set up a BIOS boot partition it will not boot in Legacy mode
  • did not set up en EFI system partition it will not boot in EFI mode

Last edited by Didier Spaier; 05-18-2023 at 11:52 AM.
 
Old 05-18-2023, 08:35 AM   #43
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,398

Original Poster
Rep: Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336
Sound a bit too much like work to me. The one laptop I messed with much here (A Samsung) was very strict about enforcing UEFI on a gpt disk. I believe Dell had a handier BIOS. What have you got?
 
Old 05-18-2023, 08:43 AM   #44
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,065

Rep: Reputation: Disabled
Quote:
Originally Posted by business_kid View Post
Sound a bit too much like work to me. The one laptop I messed with much here (A Samsung) was very strict about enforcing UEFI on a gpt disk. I believe Dell had a handier BIOS. What have you got?
In my computer's firmware setting menu the user can set the machine to boot either in EFI mode only or in EFI as well as in Legacy modes, regardless of the partition table type. Thus if I display the firmware's boot menu at startup I can choose to boot off the same drive in either legacy or EFI mode just selecting the relevant boot entry. This comes very handy for testing various configurations.

Last edited by Didier Spaier; 05-18-2023 at 08:45 AM.
 
1 members found this post helpful.
Old 05-18-2023, 01:47 PM   #45
Jan K.
Member
 
Registered: Apr 2019
Location: Esbjerg
Distribution: Windows 7...
Posts: 773

Rep: Reputation: 489Reputation: 489Reputation: 489Reputation: 489Reputation: 489
Quote:
Originally Posted by Didier Spaier View Post
In my computer's firmware setting menu the user can set the machine to boot either in EFI mode only or in EFI as well as in Legacy modes...
Can recommend when buying new motherboard/pc to make sure all three options are available.

In a wild scenario where the certificate system collaps in a hack-feast it's nice to have a simple old system to run one's trusted platform...

But I like being a simpleton so as long as it's possible, will always choose Legacy.
 
  


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
LXer: Have you heard of ONLYOFFICE? It’s like Google Docs, only it’s not from Google … and you might LXer Syndicated Linux News 1 04-04-2015 11:47 PM
Ever heard of Alinux and HOW do you burn a 800mb CD I've never heard of one BiPolarPenguin General 4 12-19-2006 08:56 PM
Have you guys heard of this new search engine called AnooX? peter99 Linux - General 1 02-21-2006 06:45 AM
LXer: Loan Linux Your Larynx - Let Your Voice Be Heard…No, REALLY Heard LXer Syndicated Linux News 0 01-29-2006 11:03 PM
i know you guys have heard this one before..... theasp Linux - Hardware 0 08-11-2003 11:06 PM

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

All times are GMT -5. The time now is 02:53 PM.

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