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

dm-crypt issues, can we get it as a module #22

Open
nikias opened this issue Aug 31, 2020 · 5 comments
Open

dm-crypt issues, can we get it as a module #22

nikias opened this issue Aug 31, 2020 · 5 comments

Comments

@nikias
Copy link

nikias commented Aug 31, 2020

Hi,
when I try to mount a luks volume, I am getting this error:

device-mapper: table: 253:0: crypt: unknown target type
device-mapper: reload ioctl on   failed: Invalid argument

According to my researches, this bug can be resolved by providing dm-crypt as a kernel module instead of built-in.
Could you update the build to reflect that?
That would be pretty dope :)
Thanks

@avafinger
Copy link
Owner

Can you tell which kernel?
I think kernel 5.x i have # CONFIG_DM_CRYPT is not set

Would you mind trying 5.9.0-rc3? I am testing it with 20.04 LTS.

@nikias
Copy link
Author

nikias commented Sep 1, 2020

Oh sorry, I was talking about 5.7.9 - if it's not set then obviously it can't work at all. I might give it a shot with 5.9.0-rc3.

@avafinger
Copy link
Owner

I have the config below, check if you need anything else:

#
# Generic fallback / legacy drivers
#
# CONFIG_PATA_ACPI is not set
# CONFIG_ATA_GENERIC is not set
# CONFIG_PATA_LEGACY is not set
CONFIG_MD=y
CONFIG_BLK_DEV_MD=m
# CONFIG_MD_LINEAR is not set
# CONFIG_MD_RAID0 is not set
# CONFIG_MD_RAID1 is not set
# CONFIG_MD_RAID10 is not set
# CONFIG_MD_RAID456 is not set
# CONFIG_MD_MULTIPATH is not set
# CONFIG_MD_FAULTY is not set
# CONFIG_BCACHE is not set
CONFIG_BLK_DEV_DM_BUILTIN=y
CONFIG_BLK_DEV_DM=m
# CONFIG_DM_DEBUG is not set
# CONFIG_DM_UNSTRIPED is not set
CONFIG_DM_CRYPT=m
# CONFIG_DM_SNAPSHOT is not set
# CONFIG_DM_THIN_PROVISIONING is not set
# CONFIG_DM_CACHE is not set
# CONFIG_DM_WRITECACHE is not set
# CONFIG_DM_EBS is not set
# CONFIG_DM_ERA is not set
# CONFIG_DM_CLONE is not set
CONFIG_DM_MIRROR=m
# CONFIG_DM_LOG_USERSPACE is not set
# CONFIG_DM_RAID is not set
CONFIG_DM_ZERO=m
# CONFIG_DM_MULTIPATH is not set
# CONFIG_DM_DELAY is not set
# CONFIG_DM_DUST is not set
# CONFIG_DM_UEVENT is not set
# CONFIG_DM_FLAKEY is not set
# CONFIG_DM_VERITY is not set
# CONFIG_DM_SWITCH is not set
# CONFIG_DM_LOG_WRITES is not set
# CONFIG_DM_INTEGRITY is not set
# CONFIG_TARGET_CORE is not set
# CONFIG_FUSION is not set

@avafinger
Copy link
Owner

We have it as a modules now:

 LD [M]  drivers/md/dm-crypt.ko
  LD [M]  crypto/essiv.ko

@avafinger
Copy link
Owner

Please try this one, I did it in a rush and had no time to test but should work.
If you prefer the img file it will take some time.

https://github.com/avafinger/nanopi-m4-ubuntu-base-minimal/releases/tag/v1.37

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