]> git.proxmox.com Git - grub2.git/blobdiff - debian/grub-pc.postrm
send error output of rmdir /boot/grub to /dev/null
[grub2.git] / debian / grub-pc.postrm
index cf87d50d66749e86dd0eb98217e2c484b7c5e950..89ebed176f5d14e095027bd91957c00fbfb180d8 100644 (file)
@@ -21,7 +21,7 @@ case "$1" in
     db_get grub-pc/purge_boot_grub || true
     if [ "$RET" = "true" ] ; then
        rm -f /boot/grub/{grub.cfg,ascii.pf2,unicode.pf2,moreblue-orbit-grub.png,*.mod,*.lst,*.img} || true
-       rmdir /boot/grub || true
+       rmdir /boot/grub 2>/dev/null || true
     fi
   ;;
   remove|upgrade|failed-upgrade|abort-upgrade|abort-install)