1 |
On Wed, Apr 29, 2015 at 2:37 PM, symack <symack@×××××.com> wrote: |
2 |
|
3 |
> Yes please! grub2 cfg. |
4 |
> |
5 |
> Nick. |
6 |
> |
7 |
> |
8 |
|
9 |
On a HP server with HW raid having /dev/sda with disklabel type dos: |
10 |
/dev/sda1 /boot ext2 |
11 |
/dev/sda2 /root ext4 |
12 |
/dev/sda3 lvm |
13 |
|
14 |
/etc/default/grub |
15 |
GRUB_DEFAULT=saved |
16 |
GRUB_CMDLINE_LINUX="panic=30 net.ifnames=0" |
17 |
GRUB_CMDLINE_XEN="dom0_mem=4G" |
18 |
|
19 |
/boot/grub/grubenv |
20 |
saved_entry=Gentoo GNU/Linux, with Xen hypervisor |
21 |
|
22 |
/boot has: |
23 |
config-3.14.37 |
24 |
kernel-3.14.37 |
25 |
xen-4.4.2.gz |
26 |
xen-4.4.gz -> xen-4.4.2.gz |
27 |
xen-4.gz -> xen-4.4.2.gz |
28 |
xen-syms-4.4.2 |
29 |
xen.gz -> xen-4.4.2.gz |
30 |
|
31 |
grub.cfg looks like: |
32 |
### BEGIN /etc/grub.d/20_linux_xen ### |
33 |
menuentry 'Gentoo GNU/Linux, with Xen hypervisor' --class gentoo --class |
34 |
gnu-linux --class gnu --class os --class xen $menuentry_id_option |
35 |
'xen-gnulinux-simple-0316b3f3-07ca-4e07-ab1e-42cba9c6763d' { |
36 |
insmod part_msdos |
37 |
insmod ext2 |
38 |
set root='hd0,msdos1' |
39 |
if [ x$feature_platform_search_hint = xy ]; then |
40 |
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 |
41 |
--hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 |
42 |
be00dffd-2b2a-4a7f-831d-b1a728a51e4d |
43 |
else |
44 |
search --no-floppy --fs-uuid --set=root |
45 |
be00dffd-2b2a-4a7f-831d-b1a728a51e4d |
46 |
fi |
47 |
echo 'Loading Xen xen ...' |
48 |
if [ "$grub_platform" = "pc" -o "$grub_platform" = "" ]; then |
49 |
xen_rm_opts= |
50 |
else |
51 |
xen_rm_opts="no-real-mode edd=off" |
52 |
fi |
53 |
multiboot /xen.gz placeholder dom0_mem=4G ${xen_rm_opts} |
54 |
echo 'Loading Linux 3.14.37 ...' |
55 |
module /kernel-3.14.37 placeholder root=/dev/sda2 ro panic=30 |
56 |
net.ifnames=0 |
57 |
} |
58 |
|
59 |
This was generated by grub2-mkconfig. |