etc/gentoo/grub.conf.m4

27 lines
755 B
Plaintext

default 0
timeout 2
define(`host', `esyscmd(`hostname | xargs echo -n')')
define(`main_part_grub', `(hd0,0)')
define(`kargs', `ifelse(
host, `schnecke2', `video=radeonfb:vesa:0x11B root=/dev/hda1',
host, `achatina', `video=radeonfb:vesa:0x11B udev dolvm2 root=/dev/ram0 init=/linuxrc real_root=/dev/datavg/gentoo',
host, `schnecke1', `video=matroxfb:vesa:0x11B root=/dev/hda1'
)')
define(`kernel_file', `/boot/kernel-$1')
define(`linux', `
title Gentoo Linux $1
root main_part_grub
kernel kernel_file(`$1') kargs
ifelse(host, `achatina', `initrd /boot/initramfs-genkernel-x86_64-$1')
')
define(`m_linux', `linux($1)
ifelse(`$#', `1', `', `m_linux(shift($@))')')
m_linux(esyscmd(`ls -t /boot/kernel-* | cut -c 14- | xargs echo -n \
| tr " " ,'))