chore: do not overwrite /etc/default/grub

This commit is contained in:
Rudra Saraswat 2023-06-11 09:28:14 +10:00
parent a77f631c43
commit b33942bd3b

View file

@ -42,6 +42,7 @@ run_latehook() {
for i in sudoers crypttab fstab group gshadow hosts passwd resolv.conf shadow shells subgid subuid; do for i in sudoers crypttab fstab group gshadow hosts passwd resolv.conf shadow shells subgid subuid; do
cp "/new_root/etc/${i}" /new_root/.new.etc cp "/new_root/etc/${i}" /new_root/.new.etc
done done
cp "/new_root/etc/default/grub" /new_root/.new.etc
# Rename existing /etc. # Rename existing /etc.
mv /new_root/etc /new_root/.old.etc &>/dev/null || : mv /new_root/etc /new_root/.old.etc &>/dev/null || :