mirror of
https://github.com/justinian/jsix.git
synced 2025-12-10 00:14:32 -08:00
[scripts] Fix initrd directory compression
The mkj6romfs.py script always wrote uncompessed directory info to the initrd image, even if compressed was smaller - but it would write the metadata as if it had compressed it.
This commit is contained in:
@@ -101,7 +101,7 @@ def add_dir(path, files, dirs, inode_data, dir_inodes, output, compress):
|
||||
# Don't use more room for compression than
|
||||
# the original file
|
||||
if comp_size >= uncomp_size:
|
||||
compressed = uncompressed
|
||||
uncompressed = compressed
|
||||
comp_size = uncomp_size
|
||||
|
||||
output.write(uncompressed)
|
||||
|
||||
Reference in New Issue
Block a user