You are not logged in.

#1 2022-08-09 00:38:27

LowkeyUndergrounder
Member
Registered: 2022-07-08
Posts: 40

update-grub sets unencrypted drive as root every time when used

Greetings, i am using a system encrypted with LUKS2 and the latest version of grub and every-time i try to do update-grub, the line

 linux   /vmlinuz-linux-zen cryptdevice=UUID=A:root root=/dev/mapper/root 

(A being the encrypted drive that is mounted on/ '/dev/nvme0n1p2') on the grub.cfg file automatically defaults back to

 linux   /vmlinuz-linux-zen root=UUID=B 

(B being the unlocked, unencrypted and unmounted-at-the-time drive that is to be mounted on /dev/mapper/root after decryption/ '/dev/mapper/root') , how may i fix the update-grub and grub-mkconfig commands from breaking the mount points for the boot drive and having to manually set the boot-points for them every time after use? I tried disabling UUID on Grub and the only thing that changed was the uuid part got changed to /dev/mapper/root, pretty much the same thing...

Offline

#2 2022-08-09 01:03:24

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: update-grub sets unencrypted drive as root every time when used

update-grub is a Debian thing. It doesn't exist on Arch and you shouldn't try to use it.

Offline

#3 2022-08-09 02:46:58

LowkeyUndergrounder
Member
Registered: 2022-07-08
Posts: 40

Re: update-grub sets unencrypted drive as root every time when used

Scimmia wrote:

update-grub is a Debian thing. It doesn't exist on Arch and you shouldn't try to use it.

Update grub is just a small line of code to make the grub-mkconfig faster,

#!/bin/sh
set -e
exec grub-mkconfig -o /boot/grub/grub.cfg "$@"

SRC: https://askubuntu.com/questions/418666/ … -not-found

Last edited by LowkeyUndergrounder (2022-08-09 02:49:42)

Offline

#4 2022-08-09 02:59:35

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: update-grub sets unencrypted drive as root every time when used

Which is totally pointless then, isn't it?

But as I said, it doesn't exist on Arch. How do you have it and why?

Offline

#5 2022-08-09 08:16:26

LowkeyUndergrounder
Member
Registered: 2022-07-08
Posts: 40

Re: update-grub sets unencrypted drive as root every time when used

Scimmia wrote:

Which is totally pointless then, isn't it?

But as I said, it doesn't exist on Arch. How do you have it and why?

It doesn't exist on Arch is a very weird way to put it out, it is just a script that is written in order to just automatically do grub-mkconfig -o /boot/grub/grub.cfg  without having to write the command from scratch every time, on the how; just read the source i stated there, that guide also works on Arch without having to employ any workarounds...

Offline

#6 2022-08-09 11:39:03

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: update-grub sets unencrypted drive as root every time when used

I think it's pretty safe to say at this point that you're not on Arch. Please ask for help on your distro's support channels.

Offline

#7 2022-08-09 11:42:39

LowkeyUndergrounder
Member
Registered: 2022-07-08
Posts: 40

Re: update-grub sets unencrypted drive as root every time when used

Scimmia wrote:

I think it's pretty safe to say at this point that you're not on Arch. Please ask for help on your distro's support channels.

Are you ok mate? How were you able to determine if i was on Arch or not looking at some explanations i made on how to get the update-grub command on Arch and how i did so?

Last edited by LowkeyUndergrounder (2022-08-09 11:42:53)

Offline

#8 2022-08-11 11:05:52

LowkeyUndergrounder
Member
Registered: 2022-07-08
Posts: 40

Re: update-grub sets unencrypted drive as root every time when used

Still ongoing issue, just for future reference; an alternative title for this post would be 'grub-mkconfig -o /boot/grub/grub.cfg sets unencrypted drive as root every time when used'

Offline

Board footer

Powered by FluxBB