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

option to load addition kernel modules (btrfs boot support) #187

Open
MartinNowak opened this issue Dec 28, 2017 · 3 comments
Open

option to load addition kernel modules (btrfs boot support) #187

MartinNowak opened this issue Dec 28, 2017 · 3 comments

Comments

@MartinNowak
Copy link

Hello, tried to switch the root FS of my ARM64-2GB server to btrfs (using btrfs-convert).
It seems that the initial kernel lacks the btrfs.ko module to mount that FS.

Any chance, that additional modules could be loaded on demand, e.g. via a dedicated environment option

INITRD_MODULES=fs/btrfs/btrfs.ko,<mod>

.

This approach here also relies on manually loading missing modules before continuing the boot.
Btrfs image : a recipe - Scaleway / Tutorials

@MartinNowak
Copy link
Author

Also see scaleway/image-builder#12

@berezins
Copy link

berezins commented Jan 2, 2018

May be my solution with partitioning (using small partition for root and everything else for any file system of your choice and/or LVM) would solve your case (my last answer in scaleway/image-builder#12)

@MartinNowak
Copy link
Author

Yes, a separate partition should be feasible, but it classically becomes a pain when root runs out of space.
Given that there already is a function for that

load_btrfs_ko() {
insmod_ko crypto/xor.ko
insmod_ko lib/raid6/raid6_pq.ko
insmod_ko lib/zlib_deflate/zlib_deflate.ko
insmod_ko fs/btrfs/btrfs.ko
}
, it shouldn't be too hard to make it available for non-live boots.
load_btrfs_ko

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