Skip to content
This repository has been archived by the owner on Jan 25, 2024. It is now read-only.

Commit

Permalink
Do not fail if dracut dir already exists
Browse files Browse the repository at this point in the history
  • Loading branch information
Apacelus authored Nov 21, 2023
1 parent c22d4e7 commit b6f3708
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ create_initramfs() {
echo -e "\n"
# Generate initramfs from the built modules
# when --confdir is not set dracut will use the systems config -> create empty folder to prevent dracut from using the systems config
mkdir $BUILD_ROOT_DIRECTORY/$DRACUT_CONFIG.d
mkdir -p $BUILD_ROOT_DIRECTORY/$DRACUT_CONFIG.d
dracut -c $BUILD_ROOT_DIRECTORY/$DRACUT_CONFIG --confdir $BUILD_ROOT_DIRECTORY/$DRACUT_CONFIG.d initramfs.cpio.xz --kver $KVER --kmoddir "$MODULES_FOLDER/lib/modules/$KVER" --force
# copy initramfs to build root for the GitHub release
cp initramfs.cpio.xz $BUILD_ROOT_DIRECTORY/initramfs.cpio.xz
Expand Down

0 comments on commit b6f3708

Please sign in to comment.