Sha256: 8be9bf378e32ba843adea1417f5c7a77f7cfbb306afb5918582bc92afbd34b24

Contents?: true

Size: 574 Bytes

Versions: 29

Compression:

Stored size: 574 Bytes

Contents

#!/bin/bash
source /etc/profile

# use grub2
cat <<DATAEOF >> "$chroot/etc/portage/package.accept_keywords/grub"
sys-boot/grub:2
DATAEOF

# install grub
chroot "$chroot" emerge grub

# tweak timeout
chroot "$chroot" sed -i "s/GRUB_TIMEOUT=.*/GRUB_TIMEOUT=1/g" /etc/default/grub

# make the disk bootable
chroot "$chroot" /bin/bash <<DATAEOF
source /etc/profile && \
env-update && \
grep -v rootfs /proc/mounts > /etc/mtab && \
mkdir -p /boot/grub2 && \
ln -sf /boot/grub2 /boot/grub && \
grub2-mkconfig -o /boot/grub/grub.cfg && \
grub2-install --no-floppy /dev/sda
DATAEOF

Version data entries

29 entries across 15 versions & 1 rubygems

Version Path
veewee-0.5.0.alpha4 templates/gentoo-latest-i686/grub.sh
veewee-0.5.0.alpha4 templates/gentoo-latest-amd64/grub.sh
veewee-0.5.0.alpha3 templates/gentoo-latest-i686/grub.sh
veewee-0.5.0.alpha3 templates/gentoo-latest-amd64/grub.sh
veewee-0.5.0.alpha2 templates/gentoo-latest-amd64/grub.sh
veewee-0.5.0.alpha2 templates/gentoo-latest-i686/grub.sh
veewee-0.5.0.alpha1 templates/gentoo-latest-i686/grub.sh
veewee-0.5.0.alpha1 templates/gentoo-latest-amd64/grub.sh
veewee-0.4.5.1 templates/gentoo-latest-i686/grub.sh
veewee-0.4.5.1 templates/gentoo-latest-amd64/grub.sh
veewee-0.4.5 templates/gentoo-latest-amd64/grub.sh
veewee-0.4.5 templates/gentoo-latest-i686/grub.sh
veewee-0.4.5.pre1 templates/gentoo-latest-i686/grub.sh
veewee-0.4.5.pre1 templates/gentoo-latest-amd64/grub.sh
veewee-0.4.4 templates/gentoo-latest-i686/grub.sh
veewee-0.4.4 templates/gentoo-latest-amd64/grub.sh
veewee-0.4.3 templates/gentoo-latest-i686/grub.sh
veewee-0.4.3 templates/gentoo-latest-amd64/grub.sh
veewee-0.4.2 templates/gentoo-latest-i686/grub.sh
veewee-0.4.2 templates/gentoo-latest-amd64/grub.sh