summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortorben2015-03-23 17:22:25 +0100
committertorben2015-03-23 17:22:25 +0100
commitfeb46761f854355eb3e9e25a538b0d912d2e6583 (patch)
tree8579f18591333027c896c049231ed4ced624e758
parentDocument more functions. (diff)
downloadsystemd-init-feb46761f854355eb3e9e25a538b0d912d2e6583.tar.gz
systemd-init-feb46761f854355eb3e9e25a538b0d912d2e6583.tar.xz
systemd-init-feb46761f854355eb3e9e25a538b0d912d2e6583.zip
Adding grub2 conf to debug dracut.
-rwxr-xr-xgrub2.conf21
1 files changed, 21 insertions, 0 deletions
diff --git a/grub2.conf b/grub2.conf
new file mode 100755
index 00000000..2b71901f
--- /dev/null
+++ b/grub2.conf
@@ -0,0 +1,21 @@
+#!/bin/sh
+exec tail -n +3 $0
+# This file provides an easy way to add custom menu entries. Simply type the
+# menu entries you want to add after this comment. Be careful not to change
+# the 'exec tail' line above.
+
+menuentry 'test' --class centos --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-3.10.0-123.el7.x86_64-advanced-6c06919a-389a-4a50-8c6b-b086e65db9b0' {
+ load_video
+ set gfxpayload=keep
+ insmod gzio
+ insmod part_msdos
+ insmod xfs
+ set root='hd0,msdos1'
+ if [ x$feature_platform_search_hint = xy ]; then
+ search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 --hint='hd0,msdos1' 4236333a-a808-4f6b-b4a6-d963f4a69a25
+ else
+ search --no-floppy --fs-uuid --set=root 4236333a-a808-4f6b-b4a6-d963f4a69a25
+ fi
+ linux16 /vmlinuz-3.10.0-123.el7.x86_64 root=UUID=6c06919a-389a-4a50-8c6b-b086e65db9b0 ro rd.lvm.lv=centos/swap crashkernel=auto rd.lvm.lv=centos/root vconsole.font=latarcyrheb-sun16 vconsole.keymap=de console=tty0 console=ttyS0,9600 rd.shell
+ initrd16 /initramfs-test.img
+}