pieroproietti / penguins-eggs

On the road of Remastersys, Refracta, Systemback and father Knoppix!
https://penguins-eggs.net
374 stars 41 forks source link

Encryption enabled drops to busy box shell #338

Open jon-bit opened 4 months ago

jon-bit commented 4 months ago

I continue to get errors when I install Linux on my secondary laptop with eggs. I usually use disk encryption and I don't want to avoid it, however disk encryption may be unusable because every time I select disk encryption on the install, it crashes and doesn't work but if I DON'T use disk encryption, it does work. So I'm not going to mind about how to fix this, but I'm including a screenshot of the full error. Please let me know if you have any suggestions, thank you for the amazing project and for the help. _2024-02-29-22-45-47-704

jon-bit commented 4 months ago

UPDATE: I disabled c states and now it says this. 2024-02-29-23-03-27-242

pieroproietti commented 4 months ago

Hi, I can try to make a test. I'm not so expert on encrypted machine, but i can prepare a VM with encripted disk and see that happen.

jon-bit commented 4 months ago

Thanks @pieroproietti . I appreciate it. I used mint with a number of apps just so you know in advance what my setup looked like. let me know how it goes.

pieroproietti commented 4 months ago

Hi @jon-bit

I just made - just a test - using Arch - created a VM with encryped root on /dev/mapper/root and create a new ISO from it with eggs.

Surprising work nicelly, like it was on a normal partition and the ISO is produced.

I reinstalled the resulting ISO and get a normal system - not encrypted - but this is normal becouse I don't have an option in krill (the eggs CLI system installer) to select for an encrypted partition.

I don't know if calamares let to create encrypted partition, another possible test is that.

pieroproietti commented 4 months ago

just made a test with calamares on the same VM. I added my colibri configuration, just an XFCE plus tools to develop, and added calamares on the encripted VM, then make a new ISO. The new ISO start and install, from calamares I see the possibility to create a luks2 volume, but it seem there is no way to use is to create a root partition. This I think depend on calamares - or from my ignorance of the argumento - more than other.

In short seem eggs is almost trasparent to encrypted or not encripted systems.

OK, I discovered the way to create encrypt partition with calamares, just a click on [] encrypt and put passwork and I'm nicelly installing the ISO, not problems at all using Arch and calamares 3.3.x.

The resulting installation work happily.

pieroproietti commented 4 months ago

Again a note

I thought I was done with my answer, and I was moving on to take a look at eggs to see if I can improve anything -- I recently discovered Copilot and AI in general -- and I must say it helps.

So I went to the krill code, the installer, and realized that there is in fact an option in krill for encrypted partitions and tried it on the same VM as above.

The result was this.

instaling-encrypted-

It doesn't ask me for the password to open the encrypted partitions, I would have to dive into the code to figure out what changes to make.

The CLI installation code is all in krill

Try to take a look at it if you can provide some suggestions.

if on the other hand, you can't or won't, try using calamares for reinstallation, in this one I used krill and evidently something is missing.

jon-bit commented 4 months ago

"calamares let to create encrypted partition"

Hi. Thanks for the update. In the disk part of the install their should be a "encrypt disk" button. That's what I used. I'll post a photo of where it is If you want me to. Also I did use calamares. I honest don't know what to do. I have a lot of packages so let me try less and I will get back to you.

jon-bit commented 4 months ago

UPDATE: I have some news. I did an arch install with the CLI and got the error @pieroproietti is getting BUT it is different when I do it on mint (my OS of choice). That one drops to busy box rather then emergency shell. I don't know what to do here but I plan on trying another OS latter this week. Let me know if anyone is able to help and thanks in advance.

jon-bit commented 3 months ago

I just wanted to give an update that on the last few updates to eggs. As of 9.6.40 it is still not working. Their is no rush but I saw on the last few updates LUKS updates and I'm not a coder so I don't know if this means their has been a attempt to fix this, but I just wanted to say if their has been it has not worked yet at least for me and my modified mint distro.

UPDATE: Also wanted to add that something strange is I have to enter my encryption password but as I have stated I use mint. Not arch. So I have no clue what is happening but I am exited for a update to fix this.

jon-bit commented 3 months ago

UPDATE: I don't know if this is fixed yet But new error Now it says "ioremap error for" PCI device number (I think) " requested 0x2, got 0x0"

@pieroproietti I don't know what is different but do you have a idea?

Also, thanks for the effort. This is an amazing project.

pieroproietti commented 3 months ago

Hi @jon-bit I added some things criptedclone mostly, but it's not related on your question. Actually Im on v9.7.3l and the change was mostly in using pemGUI as GUI for eggs. Due the fact I have again same troubles with arch, I didn't updated It.

Thanks for the compliments, help always a little, I hope to have much time in the future.

jon-bit commented 1 month ago

Wanted to give a quick update with 10.0.2 out. I don't know if any attempts to fix this problem has been made (witch is fine. I understand their could be a bigger priority) however, I have not yet seen a fix. Their is no rush, but just wondering if their is a ETA to a fix because I want to use my iso (because this project is so cool) but I always use encryption, and it has been about 3 months now. Just a quick question for @pieroproietti , any idea when this will be fixed? Again major respect for amazing software.

P.S. Any ETA for the Fedora builds too?

jon-bit commented 1 month ago

UPDATE: It may be fixed. At least I did a mint install this afternoon and it worked. I will try arch in a few hours. If it works I will close as solved.

jon-bit commented 1 month ago

UPDATE: Test it on arch and now it it says "INIT NOT FOUND". Don't know whats up with that but when I boot the is that is what I get. Don't know if I did something wrong on the install (archinstall command) but if it works for someone else let me know and I will close.

jon-bit commented 1 month ago

I don't know what but it's not working anymore. I can 100% confirm it was working on 10.0.3 but not I'm seeing other wise as of forward. @pieroproietti It eggs made so you can make an egg of and egg? Like you make a iso off of a eggs made system. That could very well be the problem.

pieroproietti commented 1 month ago

Of course you can, once you install an ISO or a remastered ISO with eggs, must to be the same.

Now, I don't know your specific case - you are speacking about arch - arch is again at 10.0.3 version.

https://aur.archlinux.org/packages/penguins-eggs

jon-bit commented 1 month ago

sorry I meant mint

pieroproietti commented 1 month ago

Do you are using Mint based on Ubuntu or on Debian? That version are you using?

jon-bit commented 1 month ago

Sorry I'm a bit confused on what you mean. If I understand this right, I'm saying I am using Linux mint cinnamon.

https://linuxmint.com/download.php

pieroproietti commented 1 month ago

So you are using the last Linux Mint 21.3 "Virginia", based on Ubuntu focal...

I have not an answer, unfortunatelly, just noted today who for Ubuntu bionic based distro, You can try:

live-boot package: on bionic - for same reason - when the system is installed, directory /lib/live/boot is erased. The system work, eggs work and can produce, but the resulting ISO will not boot! To solve this problem, before generate the ISO, give: sudo apt install live-boot --reinstall. This will restore /lib/live/boot and it's full contents.

jon-bit commented 1 month ago

I'll give that try in a bit. thank you. I'll update as soon as I try it.

jon-bit commented 1 month ago

Didn't work. I have no clue why it is just not working now. I know for a fact 10.0.3 did encryption.

jon-bit commented 1 month ago

hmmmmmmm. @pieroproietti I'm out of ideas but do you think the grub could be it? It looks like that to me. Give me a bit and I'll post a photo of my config.

jon-bit commented 1 month ago

After much trouble and rage trying to upload this (It actually took 45 min), here it is: 2024-06-20_202808