With the addition of modules.d/99squash module, most of the files in the initramfs image can now be squash'ed. While this saves space, this can also be extended further to provide support for having different initramfs images built into a single image, each squash'ed separately & activated based on different boot scenarios. For that, introduce two dracut options. One, '--squash-input-images': takes a space-separated list of input initramfs images to squash & include in the initramfs image. Patch one adds this option. Two, '--squash-image-conditional': takes a script file that sets up the appropriate squash image for every possible boot scenario. The second patch introduces this option. --- Hari Bathini (2): dracut: add a new argument "--squash-input-images" dracut/99squash: make sqaush image setup flexible dracut.sh | 26 +++++++- modules.d/99squash/module-setup.sh | 17 ++++- .../99squash/setup-squash-conditional.sh | 65 +++++++++++++++++++ .../99squash/squash-image-conditional.sh | 5 ++ 4 files changed, 109 insertions(+), 4 deletions(-) create mode 100755 modules.d/99squash/setup-squash-conditional.sh create mode 100755 modules.d/99squash/squash-image-conditional.sh -- 2.31.1