Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Dracut compression defaults to ZSTD now?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
Kethreveris
n00b
n00b


Joined: 16 Feb 2009
Posts: 20
Location: Rethwallen

PostPosted: Thu Sep 05, 2024 1:04 am    Post subject: Dracut compression defaults to ZSTD now? Reply with quote

Seems the default for "dracut" compression changed from "gzip" to "zstd" recently.

During a portage update on August 28th, 2024, "dracut" was updated, and I normally create a new initial RAM disk when that happens. Then I created a new Grub entry to use this new initial RAM disk, (leaving the old InitRD & Grub entry in place). Server could not boot with this new initial RAM disk, but complained about not being able to mount root, (I use ZFS root and EXT3 "/boot"). So initially I did not suspect "dracut".

Fussing with it, I noticed that during creation, "dracut" gave me a notice about using "zstd". I don't remember seeing that before. (And I routinely create new initial RAM disks when packages, like Virtual Box, or "dracut" are updated.)
Code:
dracut[I]: *** Creating image file '/boot/linux-6.6.30-gentoo.1b.img' ***
dracut[I]: Using auto-determined compression method 'zstd'
dracut[I]: *** Creating initramfs image file '/boot/linux-6.6.30-gentoo.1b.img' done ***

Anyone else see this?

Seems I did not activate "zstd" compression support everywhere in my kernel. Easy enough work around whence I understood the problem. Added this to my "dracut" configuration and made a new initial RAM disk;
Code:
compress="gzip"

Don't really need "zstd" for initial RAM disks. I have plenty of room on "/boot".

So, did the default compression for "dracut" change?

If so, how do I determine, (except for that message during creation), what compression program was used for my initial RAM disks?

The manual page for "dracut" says "gzip" is the default;
Quote:
--gzip
Compress the generated initramfs using gzip. This will be done by default, unless another compression
option or --no-compress is passed. Equivalent to "--compress=gzip -9".

Does that mean we need to update the manual page for "dracut"?
_________________
Kethreveris, (aka Kethrery)
Back to top
View user's profile Send private message
floppymaster
Developer
Developer


Joined: 07 Jul 2010
Posts: 230
Location: Detroit, MI, USA

PostPosted: Thu Sep 05, 2024 1:37 am    Post subject: Reply with quote

These issues will be fixed in the next dracut release.

https://github.com/dracut-ng/dracut-ng/pull/541
https://github.com/dracut-ng/dracut-ng/pull/562
Back to top
View user's profile Send private message
Kethreveris
n00b
n00b


Joined: 16 Feb 2009
Posts: 20
Location: Rethwallen

PostPosted: Thu Sep 05, 2024 6:31 am    Post subject: Reply with quote

Thank you, that does seem likely to prevent the problem I had.
_________________
Kethreveris, (aka Kethrery)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
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