You are not logged in.

#26 2014-01-09 11:47:54

Vrantheo
Member
Registered: 2012-07-20
Posts: 33

Re: mkinitcpio 16 + LZ4 working?

Now that LZ4 works fine, how do we use LZ4HC?

Offline

#27 2014-01-10 01:53:26

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: mkinitcpio 16 + LZ4 working?

Vrantheo wrote:

Now that LZ4 works fine, how do we use LZ4HC?

I have not tried, but couldn't this just be achieved by using COMPRESSION_OPTIONS="-9"?  The man page seems to indicate that would provide the highest compression... so 'hc'.

Offline

#28 2014-01-11 00:49:42

vorbote
Member
From: 8375 ft closer to the stars
Registered: 2011-02-07
Posts: 38
Website

Re: mkinitcpio 16 + LZ4 working?

Vrantheo wrote:

Now that LZ4 works fine, how do we use LZ4HC?

Yes, but you will have to set up the COMPRESSION options in mkinitcpio.conf to use lz4hc and use the -l flag to have it output the old stream format. Then regenerate the initrd files.


I break things and put them back together for fun and sometimes profit, because it is the only way to learn.

Offline

#29 2014-01-11 01:06:50

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: mkinitcpio 16 + LZ4 working?

What???

All you have to do is use COMPRESSION_OPTIONS="-9" and you're done.  The legacy format is automatically used in the most recent version of mkinitpcio.  There also is no lz4hc binary, just lz4 and lz4c. 

I'm not entirely sure why there is lz4 and lz4c. lz4c is one KB larger on my machine, but the help output is identical.  They are definitely their own separate binaries though, as neither is a symlink and they both have their own inodes.

Offline

#30 2014-01-11 17:15:19

vorbote
Member
From: 8375 ft closer to the stars
Registered: 2011-02-07
Posts: 38
Website

Re: mkinitcpio 16 + LZ4 working?

WonderWoofy wrote:

What???

All you have to do is use COMPRESSION_OPTIONS="-9" and you're done.  The legacy format is automatically used in the most recent version of mkinitpcio.  There also is no lz4hc binary, just lz4 and lz4c. 

I'm not entirely sure why there is lz4 and lz4c. lz4c is one KB larger on my machine, but the help output is identical.  They are definitely their own separate binaries though, as neither is a symlink and they both have their own inodes.

You always have to have the last word, don't you? Yes, I forgot the exact name of the binary, but you really need to reread what you wrote. Meh.


I break things and put them back together for fun and sometimes profit, because it is the only way to learn.

Offline

#31 2014-01-11 19:51:02

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: mkinitcpio 16 + LZ4 working?

vorbote wrote:

You always have to have the last word, don't you? Yes, I forgot the exact name of the binary, but you really need to reread what you wrote. Meh.

???  I don't quite understand why you are getting so pissed.  Aren't we just discussing how to properly use lz4 as a compression option for the initramfs?  I didn't try to attack your mother's credibility or anything...

Offline

#32 2014-01-12 05:16:24

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: mkinitcpio 16 + LZ4 working?

A reminder: https://wiki.archlinux.org/index.php/Fo … ther_Users

I think we are just about done here.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#33 2014-01-12 12:30:24

Cyan
Member
Registered: 2014-01-12
Posts: 2

Re: mkinitcpio 16 + LZ4 working?

WonderWoofy wrote:

I'm not entirely sure why there is lz4 and lz4c.

lz4c is just a minor variant, which also supports legacy command line arguments (such as : lz4c -hc filename).
Detailed are provided using advanced help : lz4c -H

Last edited by Cyan (2014-01-12 12:30:45)

Offline

#34 2014-01-12 15:36:31

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: mkinitcpio 16 + LZ4 working?

Ooohhh, there is a whole different level of help output.  Thanks.

Offline

#35 2021-10-29 13:28:51

mystiquewolf
Member
Registered: 2021-10-25
Posts: 17

Re: mkinitcpio 16 + LZ4 working?

Know it's old thread but since it's found in Google results - for reference LZ4 with -9 (which is recommended) equals LZ4HC, but you can set it up to -12.
Source: https://github.com/lz4/lz4/issues/660

Last edited by mystiquewolf (2021-10-29 13:30:02)


Your device could make a difference. You can help: https://join.worldcommunitygrid.org

Offline

#36 2021-10-29 13:35:54

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 23,430

Re: mkinitcpio 16 + LZ4 working?

I doubt this is relevant for most people with zstd being used primarily now.

Closing this old thread.

Offline

Board footer

Powered by FluxBB