summaryrefslogtreecommitdiff
path: root/buildlive
diff options
context:
space:
mode:
authorIru Cai <mytbk920423@gmail.com>2016-08-02 19:08:58 +0800
committerIru Cai <mytbk920423@gmail.com>2016-08-02 19:08:58 +0800
commitd06c99489cd63688a42eb85db9b09e1b56dc65a7 (patch)
tree3aeb905fdafda4f48ec50a2e4de2acea71c6531a /buildlive
parente750115fdd71ae3c26f954a667b7d33643b8aeb7 (diff)
downloadliveusb-builder-d06c99489cd63688a42eb85db9b09e1b56dc65a7.tar.xz
buildlive: install grub
Diffstat (limited to 'buildlive')
-rwxr-xr-xbuildlive3
1 files changed, 3 insertions, 0 deletions
diff --git a/buildlive b/buildlive
index e1c971f..31babbd 100755
--- a/buildlive
+++ b/buildlive
@@ -71,3 +71,6 @@ do
install_live
cat "distro/$i/grub.cfg" >> "$GRUBCFG"
done
+
+grub-install --boot-directory="$ROOTPATH" --target=i386-pc "$DEVNAME"
+grub-install --boot-directory="$ROOTPATH" --efi-directory="$ROOTPATH" --bootloader-id=grub --target=x86_64-efi --no-nvram "$DEVNAME"