Skip to content

Commit

Permalink
fix(dracut.sh): --regenerate-all should always be allowed to overwrit…
Browse files Browse the repository at this point in the history
…e existing initramfs
  • Loading branch information
awerlang committed Aug 2, 2023
1 parent 699d51c commit 9bcebed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dracut.sh
Original file line number Diff line number Diff line change
Expand Up @@ -968,13 +968,13 @@ if [[ $regenerate_all == "yes" ]]; then
if [[ $parallel != "yes" ]]; then
for i in *; do
[[ -f $i/modules.dep ]] || [[ -f $i/modules.dep.bin ]] || continue
"$dracut_cmd" --kver="$i" "${dracut_args[@]}"
"$dracut_cmd" --kver="$i" --force "${dracut_args[@]}"
((ret += $?))
done
else
for i in *; do
[[ -f $i/modules.dep ]] || [[ -f $i/modules.dep.bin ]] || continue
"$dracut_cmd" --kver="$i" "${dracut_args[@]}" &
"$dracut_cmd" --kver="$i" --force "${dracut_args[@]}" &
done
while true; do
wait -n
Expand Down

0 comments on commit 9bcebed

Please sign in to comment.