Solved Cannot boot to LUKS encrypted drive on Ubuntu - freezes after unlocking drive
-
I had a fun morning so far
I got to boot up to my encrypted drive, unlock the drive and Ubuntu freezes afterwards. So after doing some duckduckgo fu, it appears that this is problem related to Nvidia drivers that people are having across different systems with Nvidia cards. Well my machine doesnt have Nvidia, but I try the fix anyway to boot up without video drivers. No fix
So I boot up in recovery mode and try to update Ubuntu to see if there are any issues then a lightbulb goes off in my brain. I installed selinux yesterday and had no rebooted since.
So I run
sudo apt remove selinux
The package is removed and I quickly reboot my pc thinking I figured it out. Still no joy!
So I start removing everything I did yesterday and still no luck! I reboot in desperation and try removing selinux again
sudo apt remove selinux
Ubuntu then tells me its already removed, but I can also remove all these other related packages by running:
sudo apt autoremove
I reboot and success!!!
I didn't see my exact problem anyway on the interwebs so I wanted to post my resolution here in case anyone runs into this issue.
-
@IRJ With selinux, you can always test by using
sudo setenforce 0
as well, without needing to reboot. -
@travisdh1 Is it possible that AppArmor installed by default on all ubuntu installation? Having AppArmor and SELinux both active can cause problems.
-
@black3dynamite said in Cannot boot to LUKS encrypted drive on Ubuntu - freezes after unlocking drive:
Is it possible that AppArmor installed by default on all ubuntu installation?
I thought so.
-
@black3dynamite said in Cannot boot to LUKS encrypted drive on Ubuntu - freezes after unlocking drive:
@travisdh1 Is it possible that AppArmor installed by default on all ubuntu installation? Having AppArmor and SELinux both active can cause problems.
I'd love to hear a bit more about apparmor. I am not familiar with it at all. This should be a new thread.