templates/gentoo-latest-amd64/grub.sh in veewee-0.3.9 vs templates/gentoo-latest-amd64/grub.sh in veewee-0.3.10
- old
+ new
@@ -1,10 +1,10 @@
#!/bin/bash
source /etc/profile
# use grub2
-cat <<DATAEOF >> "$chroot/etc/portage/package.keywords"
+cat <<DATAEOF >> "$chroot/etc/portage/package.accept_keywords/grub"
sys-boot/grub:2
DATAEOF
# install grub
chroot "$chroot" emerge grub
@@ -15,9 +15,10 @@
# make the disk bootable
chroot "$chroot" /bin/bash <<DATAEOF
source /etc/profile && \
env-update && \
grep -v rootfs /proc/mounts > /etc/mtab && \
-mkdir /boot/grub2 && \
-grub2-mkconfig -o /boot/grub2/grub.cfg && \
+mkdir -p /boot/grub2 && \
+ln -sf /boot/grub2 /boot/grub && \
+grub2-mkconfig -o /boot/grub/grub.cfg && \
grub2-install --no-floppy /dev/sda
DATAEOF