Comment 31 for bug 21175

Revision history for this message
Thomas Hotz (thotz-deactivatedaccount) wrote :

--- grub-mkconfig
@@ -266,6 +266,8 @@
fi

if test "x${grub_cfg}" != "x" ; then
+ # backup previous one
+ cp ${grub_cfg} ${grub_cfg}.backup_`date +%Y%m%d_%s`
  # none of the children aborted with error, install the new grub.cfg
  mv -f ${grub_cfg}.new ${grub_cfg}
fi