[kernel-xen] kernel-xen-3.9.7-1 packages available - TESTERS REQUIRED!

Adi Pircalabu adi at ddns.com.au
Wed Jun 26 13:28:00 EST 2013

Unfortunately I haven't followed the thread in much detail and I haven't 
been able to test the new packages so I'm just making plain assumptions 
Looking at kernel & kernel-xen postinstall scripts I found that 
/sbin/new-kernel-pkg, which is part of grubby package, is used to 
install/remove kernels from the system. It's a shell script and in there 
the packager uses "grubConfig=$(readlink -f /etc/grub.conf 2>/dev/null)" 
for the path to the actual /boot/grub/grub.conf file. Is this perhaps 
something you're looking at replicating in the upcoming kernel-xen 
packages? It makes sense to me to first test for the existence of 
/etc/grub.conf as a symlink to /boot/grub/grub.conf, then decide what to 
do based on the returned value:
1. symlink correct -> do this
2. symlink points to somewhere else -> do that
3. symlink missing -> use hardcoded /boot/grub/grub.conf for backwards 
Something along these lines.

Adi Pircalabu

On 26-06-2013 09:50 AM, Steven Haigh wrote:
> On 26/06/2013 9:01 AM, Joe Fialkowski wrote:
>> I didn't do anything special to make it a symlink in the same
>> directory. It was a fresh install just was previously running Xen.
>> Interesting.
> On my systems, I see the following:
> # ls -l /etc/grub.conf
> lrwxrwxrwx. 1 root root 22 Jun  4  2011 /etc/grub.conf -> 
> ../boot/grub/grub.conf
> # ls -l /boot/grub/grub.conf
> -rw------- 1 root root 1196 May 18 19:10 /boot/grub/grub.conf
> # ls -l /boot/grub/menu.lst
> lrwxrwxrwx. 1 root root 11 Jun  4  2011 /boot/grub/menu.lst -> 
> ./grub.conf
> So in /boot/grub:
> menu.lst links to grub.conf
> In /etc:
> grub.conf links to /boot/grub/grub.conf
> From what I understand, this should be how all EL6 systems are
> installed by default.
> Either way, I'll look at using /boot/grub/grub.conf by default instead
> of /etc/grub.conf

Adi Pircalabu

More information about the kernel-xen mailing list