--- trunk/grubby/new-kernel-pkg 2016/06/30 10:35:55 2993 +++ trunk/grubby/new-kernel-pkg 2016/06/30 10:39:38 2996 @@ -1061,4 +1061,13 @@ # if we mounted the U-Boot directory, unmount it. [[ -n ${mounted} ]] && umount ${ubootDir} +# make sure changes make it to the disk. +# if /boot is a mountpoint, force the meta data on disk +# to by-pass writeback delay. +# PPC64LE-only to deal with Petitboot issues +if [[ ${ARCH} = ppc64le ]] +then + sync && mountpoint -q /boot && fsfreeze -f /boot && fsfreeze -u /boot +fi + exit 0