Diff of /mcore-src/trunk/mcore-tools/src/modules/grub2/boot.client.class.in
Parent Directory | Revision Log | Patch
revision 2079 by niro, Fri May 10 11:37:38 2013 UTC | revision 2085 by niro, Fri May 10 13:16:21 2013 UTC | |
---|---|---|
# | Line 6 require basic-splash | Line 6 require basic-splash |
6 | helper_boot_rebuild_bootconfig() | helper_boot_rebuild_bootconfig() |
7 | { | { |
8 | local grubconf="/boot/grub/grub.cfg" | local grubconf="/boot/grub/grub.cfg" |
9 | local chrooted | |
10 | ||
11 | if [[ -n ${MROOT} ]] && [[ ${MROOT} != / ]] | |
12 | then | |
13 | chrooted="system_chroot" | |
14 | fi | |
15 | ||
16 | mount /boot &> /dev/null | mount /boot &> /dev/null |
17 | grub-mkconfig -o ${grubconf} | ${chrooted} grub-mkconfig -o ${grubconf} |
18 | umount /boot &> /dev/null | umount /boot &> /dev/null |
19 | } | } |
20 |
|