You are not logged in.
Now that LZ4 works fine, how do we use LZ4HC?
Offline
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
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
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
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
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
A reminder: https://wiki.archlinux.org/index.php/Fo … ther_Users
I think we are just about done here.
Offline
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
Ooohhh, there is a whole different level of help output. Thanks.
Offline
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
I doubt this is relevant for most people with zstd being used primarily now.
Closing this old thread.
Offline