summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbuild-initramfs.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/build-initramfs.sh b/build-initramfs.sh
index 2a91b484..188369e4 100755
--- a/build-initramfs.sh
+++ b/build-initramfs.sh
@@ -402,7 +402,7 @@ initialize_dracut() {
echo "[Unit]"
echo "Description=${_desc}"
echo "DefaultDependencies=no"
- echo "Before=initrd-switch-root.target"
+ echo "Before=initrd-switch-root.target initrd-cleanup.service"
[ -n "${_wants}" ] && echo "Wants=${_wants[*]}"
[ -n "${_requires}" ] && echo "Requires=${_requires[*]}"
[ -n "${_before}" ] && echo "Before=${_before[*]}"