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

Dracut zstd initramfs #40651

Closed
Visone-Selektah opened this issue Nov 20, 2022 · 7 comments
Closed

Dracut zstd initramfs #40651

Visone-Selektah opened this issue Nov 20, 2022 · 7 comments

Comments

@Visone-Selektah
Copy link

Hi!
I'm trying to create my initramfs with zstd compression, to do so I added
compression="zstd" to /etc/dracut.conf.d/foo.conf but neater installing kernels or runing dracut by hand the initramfs is created.
Also I tried to use xbps-reconfigure -f foo with the same result.
I build the kernel with that option enabled, also have zstd installed (I use btrfs with zstd compression)
Any ideas?
Thanks!!

@ahesford
Copy link
Member

Does running dracut manually provide any useful output? Make sure you aren't running with -q/--quiet and, if that doesn't produce anything useful, try -v/--verbose.

@Visone-Selektah
Copy link
Author

Hi!
Always gives the same error, /bin/dracut: line 2176: zstd: command not found
It doesn't matter if I use config or running it manually

@Duncaen
Copy link
Member

Duncaen commented Nov 24, 2022

Install the zstd package?

@Visone-Selektah
Copy link
Author

Hi!
I have it installed, I use btrfs with zstd compression

@ahesford
Copy link
Member

Somehow I doubt btrfs relies on the zstd executable to do its encryption. If you don't see /usr/bin/zstd in response to

which zstd

or

command -v zstd

then you don't have the zstd package installed or your installation is corrupt.

@sgn
Copy link
Member

sgn commented Nov 24, 2022

Hi! I have it installed, I use btrfs with zstd compression

btrfs doesn't require zstd installed to use zstd compression, it's zstd module from kernel.
Please install zstd package.

@Visone-Selektah
Copy link
Author

Hi!
You all were right, I had libzstd but not zstd.
Now I can use zstd with dracut.
Thanks U all and sorry 4 all the trouble

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

4 participants