View previous topic :: View next topic |
Author |
Message |
Hyperspace n00b

Joined: 19 Jun 2020 Posts: 14
|
Posted: Fri Jun 19, 2020 11:36 am Post subject: Adding kernel module to LiveUSB |
|
|
Hey community,
Thanks for stopping by. After searching for hours for a solution, I finally turn to this forum.
I'd like to add a kernel module to the liveUSB genkernel. To be more specific, I need dm-integrity to decrypt a different usb drive I have to access for my gentoo system setup. Since the liveUSB root filesystem the user boots into is basically read-only, with writes being written to the RAM, i have already booted into a different OS in order to mount the gentoo liveusb drive, change a few flags in boot/gentoo-config and rebuild that kernel. But since the liveUSB is written in dd-mode, modifications are impossible.
What is the easiest way to add that module? Will I have to modify the ISO before flashing it onto the usb drive?
Thanks for taking your time helping me out,
Hyperspace _________________ (•_•) ( •_•)>⌐■-■ (⌐■_■) |
|
Back to top |
|
 |
NeddySeagoon Administrator


Joined: 05 Jul 2003 Posts: 47516 Location: 56N 3W
|
Posted: Fri Jun 19, 2020 4:11 pm Post subject: |
|
|
Hyperspace,
Welcome to Gentoo.
The easiest way to add a module to the liveCD kernel is to file a bug at bugs.gentoo.org for Release Engineering to add it.
Then wait for an update.
If all the things that dm-integrity depend on in the kernel are already set, you can build the module elsewhere and put it into the right place in /lib/modules/...
Then insmod it every time. You need the exact kernel sources and exact gcc versions to build a matching module.
That's a pain and doing it that way means that the extra module is not loaded until after boot.
You other options involve recreating the ISO file.
If you have another live system that contains dm-integrity' you can use that system to install instead.
Boot it. Get a root shell, Run and follow the handbook.
Its also possible to build Gentoo the way you like it and put it onto a USB stick with an ext4 filesystem. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
 |
Hyperspace n00b

Joined: 19 Jun 2020 Posts: 14
|
Posted: Sat Jun 27, 2020 2:11 pm Post subject: |
|
|
NeddySeagoon wrote: | Hyperspace,
Welcome to Gentoo.
The easiest way to add a module to the liveCD kernel is to file a bug at bugs.gentoo.org for Release Engineering to add it.
Then wait for an update.
If all the things that dm-integrity depend on in the kernel are already set, you can build the module elsewhere and put it into the right place in /lib/modules/...
Then insmod it every time. You need the exact kernel sources and exact gcc versions to build a matching module.
That's a pain and doing it that way means that the extra module is not loaded until after boot.
You other options involve recreating the ISO file.
If you have another live system that contains dm-integrity' you can use that system to install instead.
Boot it. Get a root shell, Run and follow the handbook.
Its also possible to build Gentoo the way you like it and put it onto a USB stick with an ext4 filesystem. |
Alright, thanks! _________________ (•_•) ( •_•)>⌐■-■ (⌐■_■) |
|
Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|