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

Joe Fialkowski joe at zoomcloud.net
Thu Jun 27 13:59:31 EST 2013


I couldn't wait. It looks like it updated grub properly this time. Still got that weird message from yum about install only packages, but I am not sure if that is because I am installing the rpm's from a local file using yum. I don't have a .repo setup for the testing repo. 

[root at xm2 joe]# yum update kernel-xen-*.rpm
Loaded plugins: fastestmirror, presto
Loading mirror speeds from cached hostfile
 * base: mirrors.lga7.us.voxel.net
 * extras: centos.mirror.constant.com
 * kernel-xen: us2.mirror.crc.id.au
 * soluslabs: mirror.us1.soluslabs.net
 * updates: centos.mirror.nac.net
Setting up Update Process
Examining kernel-xen-3.9.7-5.el6xen.x86_64.rpm: kernel-xen-3.9.7-5.el6xen.x86_64
Marking kernel-xen-3.9.7-5.el6xen.x86_64.rpm as an update to kernel-xen-3.7.4-1.el6xen.x86_64
Marking kernel-xen-3.9.7-5.el6xen.x86_64.rpm as an update to kernel-xen-3.8.1-1.el6xen.x86_64
Marking kernel-xen-3.9.7-5.el6xen.x86_64.rpm as an update to kernel-xen-3.8.2-3.el6xen.x86_64
Examining kernel-xen-firmware-3.9.7-5.el6xen.x86_64.rpm: kernel-xen-firmware-3.9.7-5.el6xen.x86_64
Marking kernel-xen-firmware-3.9.7-5.el6xen.x86_64.rpm as an update to kernel-xen-firmware-3.8.2-3.el6xen.x86_64
Resolving Dependencies
--> Running transaction check
---> Package kernel-xen.x86_64 0:3.9.7-5.el6xen will be installed
---> Package kernel-xen-firmware.x86_64 0:3.8.2-3.el6xen will be updated
---> Package kernel-xen-firmware.x86_64 0:3.9.7-5.el6xen will be an update
--> Finished Dependency Resolution

Dependencies Resolved

============================================================================================================================================================================
 Package                                 Arch                       Version                            Repository                                                      Size
============================================================================================================================================================================
Installing:
 kernel-xen                              x86_64                     3.9.7-5.el6xen                     /kernel-xen-3.9.7-5.el6xen.x86_64                               87 M
Updating:
 kernel-xen-firmware                     x86_64                     3.9.7-5.el6xen                     /kernel-xen-firmware-3.9.7-5.el6xen.x86_64                     2.2 M

Transaction Summary
============================================================================================================================================================================
Install       1 Package(s)
Upgrade       1 Package(s)

Total size: 90 M
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Updating   : kernel-xen-firmware-3.9.7-5.el6xen.x86_64                                                                                                                1/3 
  Installing : kernel-xen-3.9.7-5.el6xen.x86_64                                                                                                                         2/3 



Detected 'installonlypkgs' option already in /etc/yum.conf. Not modifying!
Adding Xen lines to /boot/grub/grub.conf for kernel-xen-3.9.7-5.el6xen.x86_64.
  Cleanup    : kernel-xen-firmware-3.8.2-3.el6xen.x86_64                                                                                                                3/3 
  Verifying  : kernel-xen-firmware-3.9.7-5.el6xen.x86_64                                                                                                                1/3 
  Verifying  : kernel-xen-3.9.7-5.el6xen.x86_64                                                                                                                         2/3 
  Verifying  : kernel-xen-firmware-3.8.2-3.el6xen.x86_64                                                                                                                3/3 

Installed:
  kernel-xen.x86_64 0:3.9.7-5.el6xen                                                                                                                                        

Updated:
  kernel-xen-firmware.x86_64 0:3.9.7-5.el6xen                                                                                                                               

Complete!
[root at xm2 joe]# 
[root at xm2 joe]# 
[root at xm2 joe]# 
[root at xm2 joe]# cat /boot/grub/menu.lst 
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You do not have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /, eg.
#          root (hd0,0)
#          kernel /boot/vmlinuz-version ro root=/dev/md0
#          initrd /boot/initrd-[generic-]version.img
#boot=/dev/sdb
default=0
timeout=5
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
hiddenmenu
title CentOS (3.9.7-5.el6xen.x86_64)
	root (hd0,0)
	kernel /boot/xen.gz dom0_mem=1024M cpufreq=xen dom0_max_vcpus=4 dom0_vcpus_pin
	module /boot/vmlinuz-3.9.7-5.el6xen.x86_64 ro root=UUID=7820245c-b7d8-4871-a1ba-7f7b98f0bb88 rd_NO_LUKS  KEYBOARDTYPE=pc KEYTABLE=us LANG=en_US.UTF-8 rd_MD_UUID=9c2361ac:e1dd6c77:a309a3bf:dd1f145b SYSFONT=latarcyrheb-sun16 crashkernel=auto rd_NO_LVM rd_MD_UUID=1f9f37dd:c1869180:751d394d:15171390 rd_NO_DM rhgb quiet
	module /boot/initramfs-3.9.7-5.el6xen.x86_64.img

-- 
Joe Fialkowski
ZoomCloud.net
Hosting • VPS • Dedicated

On June 26, 2013 at 10:01:10 PM, Joe Fialkowski (joe at zoomcloud.net) wrote:

I have another upgrade planned for tomorrow night. I will give it a shot if you would like. 
-- 
Joe Fialkowski
ZoomCloud.net
Hosting • VPS • Dedicated

On June 26, 2013 at 9:55:09 PM, Steven Haigh (netwiz at crc.id.au) wrote:

On 27/06/2013 11:05 AM, Adi Pircalabu wrote:
> On 27-06-2013 10:44 AM, Steven Haigh wrote:
>> On 26/06/2013 2:57 PM, Adi Pircalabu wrote:
>>> On 26-06-2013 13:51 PM, Steven Haigh wrote:
>>>> This makes me think I should use something like:
>>>> GRUB_CONF=$(readlink -f /etc/grub.conf 2>/dev/null)
>>>> if [ -z $GRUB_CONF ]; then
>>>> if [ -f "/boot/grub/grub.conf" ]; then
>>>> GRUB_CONF="/boot/grub/grub.conf"
>>>
>>> Problem here, $GRUB_CONF link can point to any other file, you don't
>>> test the value but you then test if /boot/grub/grub.conf exists and use
>>> it. In this case the symlink test is useless.
>>
>> Not quite. The -z operator will check for a zero length string.
>
> Ah yes, you're correct, I was (mis)reading it the other way. Though your
> zero test doesn't cover the case when /etc/grub.conf is a symlink to a
> non-existent file. To add an additional safeguard you might look at
> using '-e' readlink(1) option, for which the manual states:
> -e, --canonicalize-existing
> canonicalize by following every symlink in every
> component of the given name recursively, all components must exist
> Here's a quick test I did with/without '-e':
>
> adi at adi:~$ ln -sf /nonexistent /tmp/nonexistent
> adi at adi:~$ stat /tmp/nonexistent
> File: ‘/tmp/nonexistent’ -> ‘/nonexistent’
> Size: 12 Blocks: 0 IO Block: 4096 symbolic link
> Device: fc00h/64512d Inode: 917682 Links: 1
> Access: (0777/lrwxrwxrwx) Uid: ( 1000/ adi) Gid: ( 1000/ adi)
> Access: 2013-06-27 10:52:27.408079496 +1000
> Modify: 2013-06-27 10:52:23.932261559 +1000
> Change: 2013-06-27 10:52:23.932261559 +1000
> Birth: -
> adi at adi:~$ ls -l /tmp/nonexistent
> lrwxrwxrwx 1 adi adi 12 Jun 27 10:52 /tmp/nonexistent -> /nonexistent
> adi at adi:~$ readlink /tmp/nonexistent
> /nonexistent
> adi at adi:~$ echo $?
> 0
> (Oops, non-zero length here and no error returned!)
> adi at adi:~$ readlink -e /tmp/nonexistent
> adi at adi:~$ echo $?
> 1
> (All good here)
>
> You can get a similar result by using '-L' flag for stat(1) command.
> What do you think?

I'd say you're probably onto something here. I'm currently building  
3.9.7-5 with the following:

GRUB_CONF=$(readlink -n -e /etc/grub.conf 2>/dev/null)
if [ -z $GRUB_CONF ]; then
if [ -f "/boot/grub/grub.conf" ]; then
GRUB_CONF="/boot/grub/grub.conf"
else
echo "No valid grub.conf found. You'll need to  
fix this manually!"
fi
else
echo "Adding Xen lines to $GRUB_CONF for  
kernel-xen-%{KRELEASE}."
etc etc etc


For readlink:
-e, --canonicalize-existing canonicalize by following every symlink in
every component of the given name  
recursively,
all components must exist
-n, --no-newline do not output the trailing newline

While the new line may not have caused any issues, having a non-newline  
terminated string returned is probably more expected behaviour for any  
future additions.

3.9.7-5 will hit the testing repo shortly...

--  
Steven Haigh

Email: netwiz at crc.id.au
Web: https://www.crc.id.au
Phone: (03) 9001 6090 - 0412 935 897
Fax: (03) 8338 0299
_______________________________________________
kernel-xen mailing list
kernel-xen at lists.wireless.org.au
https://lists.wireless.org.au/mailman/listinfo/kernel-xen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.wireless.org.au/pipermail/kernel-xen/attachments/20130626/ce70b961/attachment-0001.html>


More information about the kernel-xen mailing list