Fast question about initramfs and btrfs

Hi.

I want to use btrfs as root, on standard Debian I use update-initramfs and use initrd with modules, is possible to add the module btrfs and boot with btrfs root on Osmc? I know osmc don’t support standard method of initramfs-tools

You would need to build a custom initramfs and build it for each kernel update

1 Like

Yes, I know, but I don’t know how to generate it on osmc, the standard Debian way don’t work

vim /etc/initramfs-tools/modules

update-initramfs -cv -k all

You would need to build and embed it with the kernel.

in theory on Pi the Debian initramfs could probably be used if you customised config.txt, but I have not tried it.

1 Like

All Debian based distro use the method of initramfs described, i don’t understand why is not supported on osmc. With this method if you need a module before boot (fs are usually the main “example” but there are also some other modules needed) you simply add the module on initrd (/etc/initramfs-tools/modules) and rebuild it (update-initramfs -uv or -cv).

Otherwise you must rebuild the entire kernel and include statically the module!

No – all Debian distros do not support this.

OSMC is an embedded system.

You can install initramfs-tools and build a custom initramfs if you wish to do so. I think you would only lose the early splash screen and recovery options.

1 Like

Works fine, very strange why return me an error in first time I had ran it.

Did you update config.txt to use it?

Sam

1 Like

Sure

Let’s try keep it all in one thread :slight_smile:

Sam

Just to said..

works mean works starting but with ext4 on root :expressionless: I said “works” because the os boot, and don’t return errors, but if I use the btrfs fs as root fs, give errors (the script on boot require an ext4 fs)