Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

new line in rpm queryformat #1

Merged
merged 2 commits into from almost 2 years ago

2 participants

Kevin Mulvey Major Hayden
Kevin Mulvey
kmulvey commented May 26, 2012

No description provided.

Kevin Mulvey
kmulvey commented May 26, 2012

just noticed same for F16

Major Hayden
Owner
major commented May 28, 2012

Ah, very nice catch.

Major Hayden major merged commit f266b70 into from May 28, 2012
Major Hayden major closed this May 28, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
2  Fedora 16 Minimal on XenServer 6/fedora16-minimal-xenserver6.ks
@@ -54,7 +54,7 @@ yum-updatesd
54 54
 
55 55
 # Add in an old-style grub.conf to make XenServer's pygrub happy
56 56
 %post
57  
-KERNELSTRING=`rpm -q kernel --queryformat='%{VERSION}-%{RELEASE}.%{ARCH}' | tail -n 1`
  57
+KERNELSTRING=`rpm -q kernel --queryformat='%{VERSION}-%{RELEASE}.%{ARCH}\n' | tail -n 1`
58 58
 
59 59
 cat > /boot/grub/grub.conf <<EOF
60 60
 default=0
2  Fedora 17 Minimal on XenServer 6/fedora17-minimal-xenserver6.ks
@@ -54,7 +54,7 @@ yum-updatesd
54 54
 
55 55
 # Add in an old-style grub.conf to make XenServer's pygrub happy
56 56
 %post
57  
-KERNELSTRING=`rpm -q kernel --queryformat='%{VERSION}-%{RELEASE}.%{ARCH}' | tail -n 1`
  57
+KERNELSTRING=`rpm -q kernel --queryformat='%{VERSION}-%{RELEASE}.%{ARCH}\n' | tail -n 1`
58 58
 
59 59
 cat > /boot/grub/grub.conf <<EOF
60 60
 default=0
Commit_comment_tip

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.