diff options
author | Philipp Gesang <phg@phi-gamma.net> | 2015-05-31 10:08:46 +0200 |
---|---|---|
committer | Philipp Gesang <phg@phi-gamma.net> | 2015-05-31 10:09:45 +0200 |
commit | eab0b32ba83b5565c0578f8870118d3cebb4ead0 (patch) | |
tree | 97026a5df1f32651a337d6564a0bcee55da2f1b6 /misc/etc | |
parent | caf8ec2e2623407dfd933959eaaea4f08612729f (diff) | |
download | vtcol-eab0b32ba83b5565c0578f8870118d3cebb4ead0.tar.gz |
misc: add example grub menuentry
Diffstat (limited to 'misc/etc')
-rwxr-xr-x | misc/etc/grub.d/42_vtcol | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/misc/etc/grub.d/42_vtcol b/misc/etc/grub.d/42_vtcol new file mode 100755 index 0000000..63776f3 --- /dev/null +++ b/misc/etc/grub.d/42_vtcol @@ -0,0 +1,47 @@ +#!/bin/sh +exec tail -n +3 $0 +############################################################################### +# Copyright 2015 Philipp Gesang +# Example grub menu entries for loading a vtcol-enabled ramdisk +############################################################################### +# +# See grub-mkconfig(8) for details. +# +# This file will require adaptation depending on the local setup. It is +# advisable that you only use this file for guidance and derive your own +# configuration from the examples under ``/etc/grub.d/``. Especially the +# encryption and LVM setup vary greatly with respect to the system +# configuration. (The actual UUIDs have been replaced by some fresh ones +# retrieved via /proc/sys/kernel/random/uuid.) YMMV. +# +# Always double-check the kernel and initrd lines! +# + +menuentry "linux: initramfs with solarized theme" { + echo "Booting initramfs with solarized theme ..." + load_video + set gfxpayload=keep + insmod gzio + insmod part_gpt + insmod ext2 + set root="hd0,gpt2" + echo "Booting the kernel ..." + linux /vmlinuz-linux root=UUID=0d59f480-9149-42ef-bb0d-4dfb66bcfc76 rw cryptdevice=/dev/sda3:secret quiet + echo "Loading the initramfs ..." + initrd /initramfs-linux-vtcol.img +} + +menuentry "linux/PHG Fallback" { + echo "Booting initramfs with solarized theme ..." + load_video + set gfxpayload=keep + insmod gzio + insmod part_gpt + insmod ext2 + set root="hd0,gpt2" + echo "Booting the kernel ..." + linux /vmlinuz-linux root=UUID=0d59f480-9149-42ef-bb0d-4dfb66bcfc76 rw cryptdevice=/dev/sda3:secret quiet + echo "Booting initramfs with solarized theme ..." + initrd /initramfs-linux-vtcol-fallback.img +} + |