Skip to content

Instantly share code, notes, and snippets.

@atomofiron
Created October 9, 2024 11:36
Show Gist options
  • Save atomofiron/afccba7b5a1039ac96c271aae34bbebd to your computer and use it in GitHub Desktop.
Save atomofiron/afccba7b5a1039ac96c271aae34bbebd to your computer and use it in GitHub Desktop.
sudo su
cryptsetup luksClose luks-part-uuid
cryptsetup convert --type luks2 /dev/nvme0n1p6 # type YES and press Enter
mkdir /tmp/linux
cryptsetup luksOpen /dev/nvme0n1p6 linux
mount /dev/mapper/linux /tmp/linux -o subvol=@ # '-o subvol=@' for btrfs only
mount /dev/nvme0n1p4 /tmp/linux/boot/efi
manjaro-chroot /tmp/linux
grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=Linux --recheck
grub-mkconfig -o /boot/grub/grub.cfg
exit
reboot
@atomofiron
Copy link
Author

grub luks password retry

cryptomount (hdx,gpty)
insmod normal 
normal

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment