Skip to content

Commit

Permalink
perf: disable initrd compression when squash module is enabled
Browse files Browse the repository at this point in the history
With squash module, the initramfs is double compressed, which slow down
the build progress and doesn't shrink the size much.
  • Loading branch information
ryncsn authored and johannbg committed Mar 9, 2021
1 parent 5d05ffb commit 7c0bc0b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dracut.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2053,6 +2053,9 @@ if dracut_module_included "squash"; then
rm -rf "$squash_dir"
dinfo "*** Squashing the files inside the initramfs done ***"
# Skip initramfs compress
compress="cat"
fi
dinfo "*** Creating image file '$outfile' ***"
Expand Down

0 comments on commit 7c0bc0b

Please sign in to comment.