Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include luks support in jumpdrive #79

Open
pravi opened this issue Aug 15, 2022 · 8 comments
Open

Include luks support in jumpdrive #79

pravi opened this issue Aug 15, 2022 · 8 comments

Comments

@pravi
Copy link

pravi commented Aug 15, 2022

Librem 5 support luks encrypted partitions but currently jumpdrive does not include support for mounting such partitions. Please include it. telneting to jumpdrive should be enough to use luks commands to mount the encrypted partitions.

Current work around is using the disk directly from host system but it needs qemu to mount the arm64 chroot.

@MartijnBraam
Copy link
Collaborator

You don't need ARM64 to mount the luks partition on the host. If your host has the luks tools it should just work

@pravi
Copy link
Author

pravi commented Aug 15, 2022

I can mount, but chroot needs qemu.

@pravi
Copy link
Author

pravi commented Oct 24, 2022

I have collected my notes for using qemu to chroot into the librem 5 here https://people.debian.org/~praveen/librem5-rescue.txt

@pravi
Copy link
Author

pravi commented Nov 14, 2022

Though using chroot via qemu is not sufficient to update the kernel on Librem 5 (this could be a bug in how crypttab is setup in pureos too)

Processing triggers for initramfs-tools (0.142) ...
update-initramfs: Generating /boot/initrd.img-6.0.0-1-librem5
W: No zstd in /usr/bin:/sbin:/bin, using gzip
cryptsetup: WARNING: target 'luks-802006bb-40ad-4973-bcbd-f6ac5a3cc093' not 
    found in /etc/crypttab
cryptsetup: ERROR: crypt_root: Source mismatch
device-mapper: table ioctl on crypt_root  failed: No such device or address
Command failed.
cryptsetup: WARNING: Couldn't determine cipher modules to load for crypt_root
Unsupported platform ''.
run-parts: /etc/initramfs/post-update.d//flash-kernel exited with return code 1
dpkg: error processing package initramfs-tools (--configure):
 installed initramfs-tools package post-installation script subprocess returned erro

@pravi
Copy link
Author

pravi commented Nov 14, 2022

After updating /etc/crypttab on the laptop, the error changes to

Processing triggers for initramfs-tools (0.142) ...
update-initramfs: Generating /boot/initrd.img-6.0.0-1-librem5
W: No zstd in /usr/bin:/sbin:/bin, using gzip
Unsupported platform ''.
run-parts: /etc/initramfs/post-update.d//flash-kernel exited with return code 1
dpkg: error processing package initramfs-tools (--configure):
 installed initramfs-tools package post-installation script subprocess returned error exit statu

This could probably be fixed in initramfs-tools or setting the value of platform where the tool is expecting.

@pravi
Copy link
Author

pravi commented Nov 14, 2022

@pravi
Copy link
Author

pravi commented Dec 21, 2022

On mobian, the kernel packages don't use flash kernel, so it can be updated using the chroot, though it is not yet relevant as mobian don't support luks yet. The steps for using qemu is documented at https://wiki.mobian.org/doku.php?id=tweaks#access-chroot-using-qemu-and-jumpdrive

@pravi
Copy link
Author

pravi commented Dec 22, 2022

Also discussing the possibility of following mobian approach of kernel updates in pureos https://source.puri.sm/Librem5/OS-issues/-/issues/306

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants