-
-
Notifications
You must be signed in to change notification settings - Fork 19
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
could not open modules.builtin.modinfo & cannot unlock LUKS #34
Comments
First of all thank you for bringing tinyramfs to voidlinux!
diff --git a/tinyramfs b/tinyramfs
index f2f1d96..7b7a6b0 100755
--- a/tinyramfs
+++ b/tinyramfs
@@ -143,6 +143,9 @@ copy_modules()
copy_file "${moddir}/${kernel}/modules.builtin" \
"/lib/modules/${kernel}/modules.builtin" 0644
+ copy_file "${moddir}/${kernel}/modules.builtin.modinfo" \
+ "/lib/modules/${kernel}/modules.builtin.modinfo" 0644
+
depmod -b "$tmpdir" "$kernel"
}
|
thanks, the patch fixes the warning, but not the main issue. |
No, the package and config looks good to me. I think the best way to figure out what's wrong is to boot with debug mode( |
This is what I get:
|
What if you manually load dm-crypt module with modprobe? |
|
Put |
that did not work, I had to edit by hand /usr/bin/tinyramfs |
My bad! I gave you wrong path. It should be
Either some module is missing or has wrong version(unlikely). You will have to find out why. For example you can use |
Thanks. At least |
sorry, ignore my comment about -D. |
on the working system:
while from the initram shell
so it appears some dependencies are missing. |
similarly
vs
|
Something is wrong with the way it searches for modules.
|
perhaps adding the folders
at line 128? |
Try this diff --git a/tinyramfs b/tinyramfs
index f2f1d96..854ea40 100755
--- a/tinyramfs
+++ b/tinyramfs
@@ -130,7 +130,8 @@ copy_modules()
drivers/usb/storage drivers/input/keyboard -type f 2> /dev/null |
while read -r _mod; do
- copy_file "$_mod" "/lib/modules/${kernel}/kernel/${_mod}" 0644
+ _mod=${_mod##/*}
+ copy_kmod "${_mod%%.*}"
done
)
fi |
Thanks, let me try and report.
|
with the patch (and without hostonly), i still get:
|
Is there anything bad in dmesg? |
dmesg goes so fast I cannot see any error, it even goes on to starting init and udev. how should i parse it?
|
Same error will popup if you run modprobe with |
yes, same error for both. |
if i add the line |
I need to reconsider and perhaps redo how tinyramfs copies modules. I'll look into it when i get more time. |
that makes sense, thank you. another option is to add those drivers to the luks hook. i'm enjoying tinyramfs btw :) |
on Void Linux, using void-linux/void-packages#43061 and
the config (dots are replaced by actual value of
blkid /dev/nvme0n1p2
)produces
and then the boot is stuck at
Is this related to the patch mentioned for kmod? or something else?
Thanks.
The text was updated successfully, but these errors were encountered: