avoid odd spaces in dracut config

master
Mikhail Novosyolov 4 years ago
parent 8a8471cb56
commit 81a0c9d6a5

@ -62,7 +62,7 @@ find /boot -name 'vmlinuz-*' | sort -u | while read -r line ; do
not_exist_list="${not_exist_list} ${i}"
fi
done
sed -i -e 's,=",=" ,g' "$C"
sed -i -e 's,+=",+=" ,g' "$C"
for i in ${not_exist_list} ; do
sed -i -E -e "s,[[:blank:]]${i}[[:blank:]], ,g" "$C"
done