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 committed Feb 25, 2021
1 parent d9dede8 commit fa67de6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dracut.sh
Expand Up @@ -2052,6 +2052,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 fa67de6

Please sign in to comment.