-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
this commit: - removes the dracut packages from the rootfs The size of the IPA image is slowly but steadily growing, and in order to minimize the size of the image some packages could be removed. Although dracut is used at some point in the DIB build process there is no point leaving it in the root file system after the IPA build process is finished. IPA user space does not rely on dracut, systemd can handle everything on it's own. Signed-off-by: Adam Rozman <[email protected]>
- Loading branch information
Showing
3 changed files
with
11 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 2 additions & 3 deletions
5
...c_worker_workflow/ipa_builder_elements/ipa-cleanup-dracut/cleanup.d/99-ipa-cleanup-dracut
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,8 @@ | ||
#!/bin/bash | ||
#!/usr/bin/env bash | ||
|
||
if [ "${DIB_DEBUG_TRACE:-1}" -gt 0 ]; then | ||
if [[ "${DIB_DEBUG_TRACE:-1}" -gt 0 ]]; then | ||
set -x | ||
fi | ||
set -eu | ||
set -o pipefail | ||
|
||
sudo rm -rf "$TARGET_ROOT/var/tmp/dracut"* |
8 changes: 8 additions & 0 deletions
8
...namic_worker_workflow/ipa_builder_elements/ipa-cleanup-dracut/finalise.d/99-delete-dracut
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/usr/bin/env bash | ||
|
||
if [[ "${DIB_DEBUG_TRACE:-1}" -gt 0 ]]; then | ||
set -x | ||
fi | ||
set -eu | ||
|
||
sudo dnf remove -y dracut |