Sha256: 15cc9ac7918ade9d0c6bf189de61127fab6c66426b6752bd4d11c211ad0060f9

Contents?: true

Size: 587 Bytes

Versions: 1

Compression:

Stored size: 587 Bytes

Contents

#!/bin/bash
source /etc/profile

# install grub
chroot "$chroot" emerge grub

# add installed kernel entry
cat <<DATAEOF > "$chroot/boot/grub/grub.conf"
default 0
timeout 1

title=Gentoo Linux ($kernel_version-gentoo)
root (hd0,0)
kernel /boot/kernel-genkernel-x86_64-$kernel_version-gentoo root=/dev/ram0 real_root=/dev/sda4
initrd /boot/initramfs-genkernel-x86_64-$kernel_version-gentoo
DATAEOF

# make the disk bootable
chroot "$chroot" /bin/bash <<DATAEOF
source /etc/profile && \
env-update && \
grep -v rootfs /proc/mounts > /etc/mtab && \
grub-install --no-floppy /dev/sda
DATAEOF

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
veewee-atlassian-0.3.11 templates/gentoo-latest-x86_64-experimental/grub.sh