On 13/02/2017 07:56, Andy Smith wrote:
You should be able to install grub, which will create
(and maintain)
a /boot/grub/grub.cfg file. Does it?
CentOS 7 uses grub2, which should create /boot/grub2/grub.cfg. However,
it's missing on my VPS, even though the RPM that provides it is installed.
[root@osprey boot]# ls -alR grub grub2
grub:
total 16
drwxr-xr-x. 2 root root 4096 Jan 21 08:02 .
dr-xr-xr-x. 4 root root 4096 Jan 21 08:03 ..
-rw-r--r-- 1 root root 683 Jan 21 08:02 menu.lst
-rw-r--r--. 1 root root 1350 Nov 15 2011 splash.xpm.gz
grub2:
total 12
drwx------. 3 root root 4096 Nov 22 15:51 .
dr-xr-xr-x. 4 root root 4096 Jan 21 08:03 ..
drwxr-xr-x. 3 root root 4096 May 9 2012 themes
grub2/themes:
total 12
drwxr-xr-x. 3 root root 4096 May 9 2012 .
drwx------. 3 root root 4096 Nov 22 15:51 ..
drwxr-xr-x. 2 root root 4096 Nov 22 15:51 system
grub2/themes/system:
total 8
drwxr-xr-x. 2 root root 4096 Nov 22 15:51 .
drwxr-xr-x. 3 root root 4096 May 9 2012 ..
[root@osprey boot]#
On my physical server at home that file exists and is maintained.
When a new kernel RPM is installed, that file should be updated, but
it's obviously not doing on the VPS - maybe it detects that it's booting
in xen and does something else.
I think I remember seeing something in the Red Hat documentation about
this. I'll see if I can dig it out...
Mike