From: Lukas Nykryn Date: Thu, 25 Oct 2018 13:30:36 +0000 (+0200) Subject: dracut.install: call dracut with --force X-Git-Tag: 050~261 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=48c283a29638e2c1e24cf282e673ddf8525b4199;p=thirdparty%2Fdracut.git dracut.install: call dracut with --force The kernel-install is called even if you run make install. Since we don't call dracut with -f a second make install will fail because initrd with same version is already there. This makes kernel developers feel miserable. https://bugzilla.redhat.com/show_bug.cgi?id=1642402 --- diff --git a/50-dracut.install b/50-dracut.install index 64e3549f2..bbb73442b 100755 --- a/50-dracut.install +++ b/50-dracut.install @@ -49,7 +49,7 @@ case "$COMMAND" in break fi done - dracut ${noimageifnotneeded:+--noimageifnotneeded} "$BOOT_DIR_ABS/$INITRD" "$KERNEL_VERSION" + dracut -f ${noimageifnotneeded:+--noimageifnotneeded} "$BOOT_DIR_ABS/$INITRD" "$KERNEL_VERSION" ret=$? ;; remove) diff --git a/51-dracut-rescue.install b/51-dracut-rescue.install index 6ddafdb61..ef8afac18 100755 --- a/51-dracut-rescue.install +++ b/51-dracut-rescue.install @@ -98,7 +98,7 @@ case "$COMMAND" in fi if [[ ! -f "$BOOT_DIR_ABS/$INITRD" ]]; then - dracut --no-hostonly -a "rescue" "$BOOT_DIR_ABS/$INITRD" "$KERNEL_VERSION" + dracut -f --no-hostonly -a "rescue" "$BOOT_DIR_ABS/$INITRD" "$KERNEL_VERSION" ((ret+=$?)) fi