Permalink
Browse files

Merge pull request #1 from kmulvey/master

new line in rpm queryformat
  • Loading branch information...
2 parents b585ead + cd26325 commit f266b707afa891c4ec0a37639e2153948333a7ba @major committed May 28, 2012
View
2 Fedora 16 Minimal on XenServer 6/fedora16-minimal-xenserver6.ks
@@ -54,7 +54,7 @@ yum-updatesd
# Add in an old-style grub.conf to make XenServer's pygrub happy
%post
-KERNELSTRING=`rpm -q kernel --queryformat='%{VERSION}-%{RELEASE}.%{ARCH}' | tail -n 1`
+KERNELSTRING=`rpm -q kernel --queryformat='%{VERSION}-%{RELEASE}.%{ARCH}\n' | tail -n 1`
cat > /boot/grub/grub.conf <<EOF
default=0
View
2 Fedora 17 Minimal on XenServer 6/fedora17-minimal-xenserver6.ks
@@ -54,7 +54,7 @@ yum-updatesd
# Add in an old-style grub.conf to make XenServer's pygrub happy
%post
-KERNELSTRING=`rpm -q kernel --queryformat='%{VERSION}-%{RELEASE}.%{ARCH}' | tail -n 1`
+KERNELSTRING=`rpm -q kernel --queryformat='%{VERSION}-%{RELEASE}.%{ARCH}\n' | tail -n 1`
cat > /boot/grub/grub.conf <<EOF
default=0

0 comments on commit f266b70

Please sign in to comment.