diff --git a/util/grub-mkconfig.in b/util/grub-mkconfig.in index c3ea7612e..62335d027 100644 --- a/util/grub-mkconfig.in +++ b/util/grub-mkconfig.in @@ -301,7 +301,10 @@ and /etc/grub.d/* files or please file a bug report with exit 1 else # none of the children aborted with error, install the new grub.cfg + oldumask=$(umask) + umask 077 cat ${grub_cfg}.new > ${grub_cfg} + umask $oldumask rm -f ${grub_cfg}.new fi fi