Re: Fresh-installed Debian 10 (UEFI, LUKS) not accessible through Secure Boot (was: No Grub to launch my new Debian 10 with LUKS (UEFI))

2020-01-02 Thread didier . gaumet
Le mercredi 1 janvier 2020 14:00:04 UTC+1, l0f...@tuta.io a écrit :
[...]
> Secure Boot
[...]
> However, is it normal that I cannot boot my Debian as soon as I installed it?
> I mean I didn't go on the Internet and told Debian to install something 
> specific, I only ran the installer so I shouldn't have any out of the Debian 
> tree package installed...
[...]

It does not seem normal to me and possible causes could be (in no particular 
order):
- a bug in Debian (and particularly if you installed from a Debian live image?).
- an installation that went wrong for some reason (it would then probably 
profitable to verify if the shim* packages are installed and properly 
configured) 
- a feature or a bug in the Lenovo implementation of your UEFI that prevents 
from booting particurlarly Debian or generally any other OS than Windows. I 
would try, if possible,  different setups of the UEFI to see if there is an 
improvement
- ...



Fresh-installed Debian 10 (UEFI, LUKS) not accessible through Secure Boot (was: No Grub to launch my new Debian 10 with LUKS (UEFI))

2020-01-01 Thread l0f4r0
Hi,

1 janv. 2020 à 10:36 de didier.gau...@gmail.com:

> SecureBoot has its own limitations and perhaps your use case is covered here:
>  https://wiki.debian.org/SecureBoot#Secure_Boot_limitations
>
> for example, I cannot use SecureBoot on my recent laptop due to my Realtek 
> RTL8821ce wireless card, for which there is a driver that is out out of the 
> linux kernel tree. So I have to build a DKMS module that forbids use of 
> SecureBoot (I could sign my own module to use SB, though) ...
>
Thank you for the pointer.

I understand that when you go Debian off-road (i.e install some specific 
packages/drivers for your unsupported hardware), you don't comply with Secure 
Boot out-of-the-box anymore.

However, is it normal that I cannot boot my Debian as soon as I installed it?
I mean I didn't go on the Internet and told Debian to install something 
specific, I only ran the installer so I shouldn't have any out of the Debian 
tree package installed...
My Debian should be very standard and should comply with SB at this point, no?

Thank you and Happy GNU Year to everyone on this list! :)
Best regards,
l0f4r0



Re: No Grub to launch my new Debian 10 with LUKS (UEFI)

2020-01-01 Thread didier . gaumet
Le mardi 31 décembre 2019 18:50:04 UTC+1, l0f...@tuta.io a écrit :
[...]
> As soon as I deactivate Secure Boot, I get Grub and then Debian is 
> launching...
> It's pretty weird as I thought Debian 10 works out-of-the-box with Secure 
> Boot...

SecureBoot has its own limitations and perhaps your use case is covered here:
 https://wiki.debian.org/SecureBoot#Secure_Boot_limitations

for example, I cannot use SecureBoot on my recent laptop due to my Realtek 
RTL8821ce wireless card, for which there is a driver that is out out of the 
linux kernel tree. So I have to build a DKMS module that forbids use of 
SecureBoot (I could sign my own module to use SB, though) ...



Re: No Grub to launch my new Debian 10 with LUKS (UEFI)

2019-12-31 Thread l0f4r0
Hi Didier,

Thank you for your feedback.

Actually, thinking it would help, I've just deleted my whole Windows 
installation (I just kept its recovery and small reserved partitions) and 
reinstalled Debian 10 with LUKS
It has resolved some of my problems but I have another one: Debian 10 cannot 
launch with Secure Boot activated. As soon as I deactivate Secure Boot, I get 
Grub and then Debian is launching...
It's pretty weird as I thought Debian 10 works out-of-the-box with Secure 
Boot...

Best regards,
l0f4r0


27 déc. 2019 à 11:21 de didier.gau...@gmail.com:

> Le vendredi 27 décembre 2019 08:30:04 UTC+1, l0f...@tuta.io a écrit :
>
>> Hi everyone,
>>
>> I installed some days ago Debian 10 with LVM inside LUKS and specific 
>> formatting (4 logical volumes for /, /home, /var and swap) on my Lenovo 
>> ThinkPad X390 in dual-boot configuration with Windows 10 (which came 
>> preinstalled on this brand new laptop).
>>
>> Everything went well except I can't boot easily on my Debian, I don't even 
>> see Grub. Windows is launched automatically instead.
>> My only solution is to launch a rEFInd USB key, boot on it and select either 
>> "Boot EFI\Boot\grubx64.efi from SYSTEM" or "Boot EFI\debian\grubx64.efi from 
>> SYSTEM" (among 6 options) in order to launch my Debian. It's not very handy 
>> but it seems to indicate I'm not very far from the solution because 
>> everything works fine after that (it proves that my Linux is well 
>> installed)...
>>
>> I've created a thread on LinuxQuestions at 
>> https://www.linuxquestions.org/questions/debian-26/no-grub-to-launch-my-new-debian-10-with-luks-and-lvm-uefi-4175666362/
>> You should get any useful information/details about my situation at this URL 
>> and you will see I've already tried a few operations, with no avail so 
>> far... 
>> As I don't receive any new suggestion from the LQ community during the last 
>> few days, I've decided to write to this ML.
>>
>> I would be very grateful if some people could help me regarding this matter 
>> :)
>> Thank you in advance & Best regards,
>> l0f4r0
>>
>
> Hello,
>
> in your Linuxquestions thread, I see you have already tested some solutions 
> (efbootmgr, grub-install...) to no avail.
>
> Let me share my experience: I have no Lenovo, but have had and still have 
> several HP. HP policy seems to me something like "Let's protect Windows users 
> from undesired problems, Linux and BSD users can care of themselves".
>
> For an slighty old HP laptop, to automatically boot Debian (no matter how I 
> mess with efibootmgr) , I have found no other solution than to rename Windows 
> UEFI entry (and modify Grub in torder to be able to boot windows conveniently)
>
> For a modern HP laptop, it is simpler, after installing Debian, I have to 
> enter the UEFI setup and among various boot options, I can then chose Debian 
> boot manager over Windows boot manager.
>
> If your situation is comparable, any action at OS level (Debian) is 
> superseded by the UEFI settings
>



Re: No Grub to launch my new Debian 10 with LUKS (UEFI)

2019-12-27 Thread didier . gaumet
Le vendredi 27 décembre 2019 08:30:04 UTC+1, l0f...@tuta.io a écrit :
> Hi everyone,
> 
> I installed some days ago Debian 10 with LVM inside LUKS and specific 
> formatting (4 logical volumes for /, /home, /var and swap) on my Lenovo 
> ThinkPad X390 in dual-boot configuration with Windows 10 (which came 
> preinstalled on this brand new laptop).
> 
> Everything went well except I can't boot easily on my Debian, I don't even 
> see Grub. Windows is launched automatically instead.
> My only solution is to launch a rEFInd USB key, boot on it and select either 
> "Boot EFI\Boot\grubx64.efi from SYSTEM" or "Boot EFI\debian\grubx64.efi from 
> SYSTEM" (among 6 options) in order to launch my Debian. It's not very handy 
> but it seems to indicate I'm not very far from the solution because 
> everything works fine after that (it proves that my Linux is well 
> installed)...
> 
> I've created a thread on LinuxQuestions at 
> https://www.linuxquestions.org/questions/debian-26/no-grub-to-launch-my-new-debian-10-with-luks-and-lvm-uefi-4175666362/
> You should get any useful information/details about my situation at this URL 
> and you will see I've already tried a few operations, with no avail so far... 
> As I don't receive any new suggestion from the LQ community during the last 
> few days, I've decided to write to this ML.
> 
> I would be very grateful if some people could help me regarding this matter :)
> Thank you in advance & Best regards,
> l0f4r0

Hello,

in your Linuxquestions thread, I see you have already tested some solutions 
(efbootmgr, grub-install...) to no avail.

Let me share my experience: I have no Lenovo, but have had and still have 
several HP. HP policy seems to me something like "Let's protect Windows users 
from undesired problems, Linux and BSD users can care of themselves".

For an slighty old HP laptop, to automatically boot Debian (no matter how I 
mess with efibootmgr) , I have found no other solution than to rename Windows 
UEFI entry (and modify Grub in torder to be able to boot windows conveniently)

For a modern HP laptop, it is simpler, after installing Debian, I have to enter 
the UEFI setup and among various boot options, I can then chose Debian boot 
manager over Windows boot manager.

If your situation is comparable, any action at OS level (Debian) is superseded 
by the UEFI settings 



No Grub to launch my new Debian 10 with LUKS (UEFI)

2019-12-26 Thread l0f4r0
Hi everyone,

I installed some days ago Debian 10 with LVM inside LUKS and specific 
formatting (4 logical volumes for /, /home, /var and swap) on my Lenovo 
ThinkPad X390 in dual-boot configuration with Windows 10 (which came 
preinstalled on this brand new laptop).

Everything went well except I can't boot easily on my Debian, I don't even see 
Grub. Windows is launched automatically instead.
My only solution is to launch a rEFInd USB key, boot on it and select either 
"Boot EFI\Boot\grubx64.efi from SYSTEM" or "Boot EFI\debian\grubx64.efi from 
SYSTEM" (among 6 options) in order to launch my Debian. It's not very handy but 
it seems to indicate I'm not very far from the solution because everything 
works fine after that (it proves that my Linux is well installed)...

I've created a thread on LinuxQuestions at 
https://www.linuxquestions.org/questions/debian-26/no-grub-to-launch-my-new-debian-10-with-luks-and-lvm-uefi-4175666362/
You should get any useful information/details about my situation at this URL 
and you will see I've already tried a few operations, with no avail so far... 
As I don't receive any new suggestion from the LQ community during the last few 
days, I've decided to write to this ML.

I would be very grateful if some people could help me regarding this matter :)
Thank you in advance & Best regards,
l0f4r0