Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #1 from kmulvey/master

new line in rpm queryformat
  • Loading branch information...
commit f266b707afa891c4ec0a37639e2153948333a7ba 2 parents b585ead + cd26325
@major authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.