summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Peck <bpeck@redhat.com>2014-06-19 15:39:34 -0400
committerBill Peck <bpeck@redhat.com>2014-06-19 15:39:34 -0400
commit9c419c119d30552fdc2318c39553d09eadf896af (patch)
tree15b59f703ef21cdade9d12f0f1a6fff3e03ce6d3
parent771903df15057e42d947ab186205da93c26d7219 (diff)
downloadtests-9c419c119d30552fdc2318c39553d09eadf896af.tar.gz
tests-9c419c119d30552fdc2318c39553d09eadf896af.tar.xz
tests-9c419c119d30552fdc2318c39553d09eadf896af.zip
Only add to the kernel line.
-rwxr-xr-xdistribution/virt/import/runtest.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/distribution/virt/import/runtest.sh b/distribution/virt/import/runtest.sh
index e97beca..fa403c0 100755
--- a/distribution/virt/import/runtest.sh
+++ b/distribution/virt/import/runtest.sh
@@ -77,8 +77,8 @@ function ChangeBootArgs ()
mount $BOOT /mnt/boot
# Change recipeid
if [ -e "/mnt/boot/grub/grub.conf" ]; then
- sed -i "s/\$/ BEAKER_RECIPE_ID=$GUESTRECIPEID/" /mnt/boot/grub/grub.conf
- sed -i "s|\$| BEAKER_LAB_CONTROLLER_URL=$BEAKER_LAB_CONTROLLER_URL|" /mnt/boot/grub/grub.conf
+ sed -i "s/^\(\skernel .*\)\$/\1 BEAKER_RECIPE_ID=$GUESTRECIPEID/" /mnt/boot/grub/grub.conf
+ sed -i "s|^\(\skernel .*\)\$|\1 BEAKER_LAB_CONTROLLER_URL=$BEAKER_LAB_CONTROLLER_URL|" /mnt/boot/grub/grub.conf
fi
umount /mnt/boot
kpartx -d /dev/loop0