Skip to content

Commit

Permalink
remove dracut from the IPA rootfs
Browse files Browse the repository at this point in the history
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
Rozzii committed Jan 10, 2025
1 parent 0f34d62 commit 268b89a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion jenkins/scripts/dynamic_worker_workflow/build_ipa.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ METADATA_PATH="/tmp/metadata.txt"

sudo rm -rf "${IPA_BUILD_WORKSPACE}"
# Update apt packages
sudo apt-get update -y
sudo apt-get update -y

# Install required packages
sudo apt-get install --yes python3-pip python3-virtualenv qemu-utils
Expand Down
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"*
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

0 comments on commit 268b89a

Please sign in to comment.