Proper overwriting
This commit is contained in:
parent
4e5848ec4f
commit
ca6b5037fc
@ -310,7 +310,7 @@ __EOF__
|
|||||||
else
|
else
|
||||||
echo "${REPLY}"
|
echo "${REPLY}"
|
||||||
fi
|
fi
|
||||||
done <<< "$(cat /etc/mkinitcpio.conf)" > /etc/mkinitcpio.conf
|
done <<< "$(cat /etc/mkinitcpio.conf)" > mkinitcpio.tmp && mv mkinitcpio.tmp /etc/mkinitcpio.conf
|
||||||
|
|
||||||
mkinitcpio -P
|
mkinitcpio -P
|
||||||
|
|
||||||
@ -335,7 +335,7 @@ __EOF__
|
|||||||
else
|
else
|
||||||
echo "${REPLY}"
|
echo "${REPLY}"
|
||||||
fi
|
fi
|
||||||
done <<< "$(cat /etc/default/grub)" > /etc/default/grub
|
done <<< "$(cat /etc/default/grub)" > grub.tmp && mv grub.tmp /etc/default/grub
|
||||||
|
|
||||||
grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=GRUB
|
grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=GRUB
|
||||||
grub-mkconfig -o /boot/grub/grub.cfg
|
grub-mkconfig -o /boot/grub/grub.cfg
|
||||||
|
Loading…
Reference in New Issue
Block a user