You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Summary
On Alpine Linux 3.20 full-disk-encryption with LUKS on BTRFS, grub-mkconfig fails to mount rootfs with the following message :
mount: /tmp/grub-btrfs.r8w0neyqd5: special device /dev/disk/by-uuid/xxxxxx-xxxx-xxxx-xxxx-xxxxxxxxx does not exist.
dmesg(1) may have more information after failed mount system call.
By the way I use btrbk, but this is not the point.
Issue identification
The main problem comes from Alpine : by default, it uses mdev from busybox.
Strangely, it seems to not detect every partition and "reference" it on /dev.
I don't have either /dev/disk/by-uuid/... or /dev/disk/by-label/... concerning my rootfs.
I have some filesystems, yes, but not all of them.
The second issue is that /etc/grub.d/XX-grub-btrfs config file does use the UUID of rootfs.
And I did not find a way to configure it through the config file in /etc/default/grub-btrfs/config or with the openrc config file.
Workaround
My current workaround is very very veryyyyy dirty but I do not have time to code and make a pull request.
I change the line number 596 in /etc/grub.d/XX-grub-btrfs :
from mount -o [...] /dev/disk/by-uuid/${root_uuid} [...]
to mount -o [...] /dev/mapper/root [...]
So I hardcoded my luks decryption name.
I think it would be cleaner to create a config option to modify the mountpoint entry :
default (UUID is fine),
LABEL,
custom (like mapper name)
The text was updated successfully, but these errors were encountered:
Summary
On Alpine Linux 3.20 full-disk-encryption with LUKS on BTRFS,
grub-mkconfig
fails to mount rootfs with the following message :By the way I use btrbk, but this is not the point.
Issue identification
The main problem comes from Alpine : by default, it uses
mdev
frombusybox
.Strangely, it seems to not detect every partition and "reference" it on /dev.
I don't have either
/dev/disk/by-uuid/...
or/dev/disk/by-label/...
concerning my rootfs.I have some filesystems, yes, but not all of them.
The second issue is that
/etc/grub.d/XX-grub-btrfs
config file does use the UUID of rootfs.And I did not find a way to configure it through the config file in
/etc/default/grub-btrfs/config
or with the openrc config file.Workaround
My current workaround is very very veryyyyy dirty but I do not have time to code and make a pull request.
I change the line number 596 in
/etc/grub.d/XX-grub-btrfs
:mount -o [...] /dev/disk/by-uuid/${root_uuid} [...]
mount -o [...] /dev/mapper/root [...]
So I hardcoded my luks decryption name.
I think it would be cleaner to create a config option to modify the mountpoint entry :
The text was updated successfully, but these errors were encountered: