--- mcore-src/trunk/mcore-tools/daemon/client/include/boot.client.class 2013/05/10 11:37:38 2079 +++ mcore-src/trunk/mcore-tools/daemon/client/include/boot.client.class 2013/05/10 13:16:21 2085 @@ -6,9 +6,15 @@ helper_boot_rebuild_bootconfig() { local grubconf="/boot/grub/grub.cfg" + local chrooted + + if [[ -n ${MROOT} ]] && [[ ${MROOT} != / ]] + then + chrooted="system_chroot" + fi mount /boot &> /dev/null - grub-mkconfig -o ${grubconf} + ${chrooted} grub-mkconfig -o ${grubconf} umount /boot &> /dev/null }