LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 07-17-2021, 02:55 PM   #1
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
Question Slackware and SecureBoot


Was doing some research into how some distros are getting around the SecureBoot issues and found this on the Debian Wiki:

https://wiki.debian.org/SecureBoot

And, though I have yet to test this, could this be useful for Slackware on some level to work with SecureBoot, especially with the upcoming Windows 11 requirements and Dual-Booting scenarios?

It looks, though vaguely, it requires a few additional packages.

Most importantly though, could it be scripted for post-install procedures from the Installation Media?

Maybe this can be beneficial?
 
Old 07-17-2021, 05:01 PM   #2
garpu
Senior Member
 
Registered: Oct 2009
Distribution: Slackware
Posts: 1,587

Rep: Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917
I could see where it would be beneficial for a corporate environment. (or for those who dual-boot.)
 
Old 07-17-2021, 05:26 PM   #3
ZhaoLin1457
Senior Member
 
Registered: Jan 2018
Posts: 1,032

Rep: Reputation: 1238Reputation: 1238Reputation: 1238Reputation: 1238Reputation: 1238Reputation: 1238Reputation: 1238Reputation: 1238Reputation: 1238
Quote:
Originally Posted by garpu View Post
I could see where it would be beneficial for a corporate environment. (or for those who dual-boot.)
My brother-in-law works at a huge computer shop on Beijing.

Out of curiosity, one month ago I asked him to verify the ability to disable Secure Boot on the computers they sell as brand new.

From what he said, 75% of laptops on sale as brand new has no ability to disable Secure Boot.

If Mr. Volkerding intends after 5 years of development to release a Slackware 15.0 which is not compatible with 75% of today sold laptops, is his call.

But with all respect, I think this will be shooting himself on the leg.

Last edited by ZhaoLin1457; 07-17-2021 at 05:47 PM.
 
7 members found this post helpful.
Old 07-17-2021, 06:29 PM   #4
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
Slackware and SecureBoot

^ For such a machine, you can use a self signed key as mentioned in the article in the OP.

I will never buy any computer hardware which is locked to Microsoft. Never.
 
3 members found this post helpful.
Old 07-17-2021, 08:04 PM   #5
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558

Original Poster
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
Quote:
Originally Posted by rkelsen View Post
^ For such a machine, you can use a self signed key as mentioned in the article in the OP.

I will never buy any computer hardware which is locked to Microsoft. Never.
It's not so much as it's locking it to Microsoft. It's the OEM not recognizing the need of Dual-Booting or an OS replacement since most laptops are generally used in different scenarios than a desktop. Even then, finding this article means that it wouldn't be locked anyway. You would still have the SecureBoot capabilities and ability to generate a certificate.
 
Old 07-17-2021, 08:39 PM   #6
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,550

Rep: Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404
Quote:
Originally Posted by ReaperX7 View Post
It's not so much as it's locking it to Microsoft. It's the OEM not recognizing the need of Dual-Booting or an OS replacement since most laptops are generally used in different scenarios than a desktop. Even then, finding this article means that it wouldn't be locked anyway. You would still have the SecureBoot capabilities and ability to generate a certificate.
Imagine John Doe who bought 6 months ago a cool and cheap Windows laptop, who decides to try Linux. He as zero experience with Linux, but he heard about it and wants to try it.

How he read that Slackware is the probably the best, he download the Slackware 15.0 iso and Rufus. Then makes an USB stick and tries to boot it and fails, because there is no Secure Boot support.

He tries further and finds out the LiveSlak, so he download it and prepare an USB stick with Rufus. Tries to boot it and fails, because there is no Secure Boot support.

What suggestions you can offer to this guy for installing Slackware for first time?

Yeah, looks like the Slackware Team does NOT want new users...

Last edited by LuckyCyborg; 07-17-2021 at 08:41 PM.
 
Old 07-17-2021, 08:49 PM   #7
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558

Original Poster
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
The issue will be up to Patrick, but people will have to say it's needed enough. This wouldn't be a bad thing though, and it would guarantee Slackware some flexibility to newer systems, but again, this is Patrick's decision. However, in past cases where something was needed to ensure operability, it generally gets added anyway. I would suggest we move this to the Slackware 15.0 post to request it there.
 
Old 07-18-2021, 12:23 AM   #8
chrisretusn
Senior Member
 
Registered: Dec 2005
Location: Philippines
Distribution: Slackware64-current
Posts: 2,979

Rep: Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556
After reading that Debian Wiki, seem like a lot of effort just to get your machine to boot especially if you are using and initrd and upgrading kernels frequently (like with -current).

At this point I am glad I don't have to worry about it yet.
 
1 members found this post helpful.
Old 07-18-2021, 01:13 AM   #9
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558

Original Poster
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
Quote:
Originally Posted by chrisretusn View Post
After reading that Debian Wiki, seem like a lot of effort just to get your machine to boot especially if you are using and initrd and upgrading kernels frequently (like with -current).

At this point I am glad I don't have to worry about it yet.
True enough. Although, with proper scripting, even a script created to handle eLILO, SysLinux, or Grub would be able to automate the process, as would a kernel post-install scripts for the package.

As long as it can be scripted, even with an nCurses prompt, it can work. That's the important part.
 
1 members found this post helpful.
Old 07-18-2021, 10:05 AM   #10
garpu
Senior Member
 
Registered: Oct 2009
Distribution: Slackware
Posts: 1,587

Rep: Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917
I guess my approval (not that it matters for the distro in any way) would be based on whether or not the shim could be not used for those who turn SecureBoot off or don't dual boot. Like if it's an all or nothing sort of thing, I'm not sure how to feel about it.
 
Old 07-18-2021, 04:04 PM   #11
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558

Original Poster
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
Quote:
Originally Posted by garpu View Post
I guess my approval (not that it matters for the distro in any way) would be based on whether or not the shim could be not used for those who turn SecureBoot off or don't dual boot. Like if it's an all or nothing sort of thing, I'm not sure how to feel about it.
If anything, if it's disabled in the BIOS, it shouldn't matter if it's used or not. The cert would still be there, but the system wouldn't be in enforcement mode.

Example: Certain older versions of Windows 10 wouldn't sign the kernel if it was disabled, and if you enabled SecureBoot, the system wouldn't function. All modern versions of Windows 10 now sign the kernels anyway regardless if SecureBoot is enabled or disabled. At least as far as 21H2, I've seen it's signed because every time I have updated my BIOS, by default it's not enabled, but when re-enabled, it still boots.
 
Old 07-19-2021, 01:58 PM   #12
mrapathy
Member
 
Registered: Nov 2005
Distribution: Slackware,Debian
Posts: 366

Rep: Reputation: 66
Anybody try this?
https://docs.slackware.com/howtos:se...ng_secure_boot
 
1 members found this post helpful.
Old 07-19-2021, 02:06 PM   #13
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,550

Rep: Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404
Quote:
Originally Posted by mrapathy View Post
And how you try this WHEN you have Windows 10 on computer and a non Secure Boot aware Slackware or LiveSlak ISO?

Those ISOs themselves should be Secure Boot aware to have a chance to boot them and install Slackware on a computer where is not possible to disable Secure Boot.

Last edited by LuckyCyborg; 07-19-2021 at 02:35 PM.
 
2 members found this post helpful.
Old 07-19-2021, 03:45 PM   #14
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558

Original Poster
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
Quote:
Originally Posted by LuckyCyborg View Post
And how you try this WHEN you have Windows 10 on computer and a non Secure Boot aware Slackware or LiveSlak ISO?

Those ISOs themselves should be Secure Boot aware to have a chance to boot them and install Slackware on a computer where is not possible to disable Secure Boot.
Exactly. The idea is to have SecureBoot ready kernels enabled by default, ready to deploy for systems that have SecureBoot as required and unable to be turned off, and have a script and toolset able to sign an installed/updated kernel, post-install.

This is to ensure interoperability with any system, even those that still have SecureBoot optional. Eventually, SecureBoot is going to be a norm sadly, so best to prevent a problem before it becomes a problem.
 
Old 07-19-2021, 04:04 PM   #15
Olek
Member
 
Registered: Jul 2012
Location: Wroclaw Poland
Distribution: Slackware
Posts: 110

Rep: Reputation: 27
Quote:
Originally Posted by LuckyCyborg View Post
And how you try this WHEN you have Windows 10 on computer and a non Secure Boot aware Slackware or LiveSlak ISO?

Those ISOs themselves should be Secure Boot aware to have a chance to boot them and install Slackware on a computer where is not possible to disable Secure Boot.
But you know the only way for this ISO to work with the default UEFI keys is signing the ISO files by MS?
Good luck with this!

AFAIK if You want Secure Boot with any Linux distribution, then You must have hardware with UEFI BIOS which is capable to add Your own keys.
Apparently some manufacturers add Ubuntu keys.
 
  


Reply

Tags
secure boot, uefi



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
[SOLVED] secureboot and slackware install timsoft Slackware 7 08-23-2021 11:50 AM
Dual Boot configuration for Windows 10 and openSUSE with full UEFI and Secureboot support? Molle Linux - Newbie 25 10-20-2017 09:49 PM
LXer: Legacy Bios, UEFI and SecureBoot ready Ubuntu Live image customization LXer Syndicated Linux News 0 02-09-2016 09:32 AM

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

All times are GMT -5. The time now is 02:07 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