--- 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
--- grub-mkconfig
@@ -266,6 +266,8 @@
fi
if test "x${grub_cfg}" != "x" ; then cfg}.backup_ `date +%Y%m%d_%s`
+ # backup previous one
+ cp ${grub_cfg} ${grub_
# none of the children aborted with error, install the new grub.cfg
mv -f ${grub_cfg}.new ${grub_cfg}
fi