#!/bin/sh
set -e
ISROBOOT=$(cat /etc/grub.d/00_header  | grep isRoBoot | cut -d = -f 2)
grub-mkconfig -o /boot/grub/grub.cfg

if [ $ISROBOOT ];then
    mount -o remount,ro /boot
fi
