post-upgrade (281B)
1 #!/bin/sh 2 # puts the "before an update" submenu in the boot menu. systems on ext4 (installed before 0.4) don't get snapshots 3 if [ -f /boot/grub/grub.cfg ] && [ "$(findmnt -no FSTYPE / 2>/dev/null)" = btrfs ]; then 4 grub-mkconfig -o /boot/grub/grub.cfg >/dev/null 2>&1 5 fi 6 exit 0