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=1642402master
parent
0eef73ea43
commit
48c283a296
|
@ -49,7 +49,7 @@ case "$COMMAND" in
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
dracut ${noimageifnotneeded:+--noimageifnotneeded} "$BOOT_DIR_ABS/$INITRD" "$KERNEL_VERSION"
|
dracut -f ${noimageifnotneeded:+--noimageifnotneeded} "$BOOT_DIR_ABS/$INITRD" "$KERNEL_VERSION"
|
||||||
ret=$?
|
ret=$?
|
||||||
;;
|
;;
|
||||||
remove)
|
remove)
|
||||||
|
|
|
@ -98,7 +98,7 @@ case "$COMMAND" in
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ ! -f "$BOOT_DIR_ABS/$INITRD" ]]; then
|
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+=$?))
|
((ret+=$?))
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue