[Bug 575854] [NEW] rootstock: bashism introduced in bzr revision 94

Launchpad Bug Tracker 575854 at bugs.launchpad.net
Fri Jul 9 18:15:23 BST 2010


You have been subscribed to a public bug by Daniel J Blueman (daniel-blueman):

I: First stage install done
I: Downloading kernel image (deb) from external site
I: linux-image-2.6.32.11-l13_1.0lucid_armel.deb download complete
rootstock: 792: Bad substitution

Bashism:    KERNEL_IMG_REL=${KERNEL_IMG_REL/_*_armel.deb}

Replace with: KERNEL_IMG_REL=${KERNEL_IMG_REL%%_*}

=== modified file 'rootstock'
--- rootstock	2010-04-15 21:57:01 +0000
+++ rootstock	2010-05-05 14:32:36 +0000
@@ -378,7 +378,7 @@
     KERNEL_IMAGE_CMD="dpkg -x /tmp/$KERNEL_IMG /"
 
     KERNEL_IMG_REL=${KERNEL_IMG##*linux-image-}
-    KERNEL_IMG_REL=${KERNEL_IMG_REL/_*_armel.deb}
+    KERNEL_IMG_REL=${KERNEL_IMG_REL%%_*}
 
     KERNEL_IMAGE_CREATE_INITRAMFS="update-initramfs -c -k $KERNEL_IMG_REL"
 }

After:

I: Downloading kernel image (deb) from external site
I: linux-image-2.6.32.11-l13_1.0lucid_armel.deb download complete
I: Setting up serial tty in image

and it's generating the /boot/initrd.img:

ldconfig deferred processing now taking place
update-initramfs: Generating /boot/initrd.img-2.6.32.11-l13

** Affects: project-rootstock
     Importance: Undecided
         Status: New

** Affects: rootstock (Ubuntu)
     Importance: Undecided
         Status: Confirmed

-- 
rootstock: bashism introduced in bzr revision 94
https://bugs.launchpad.net/bugs/575854
You received this bug notification because you are a member of Ubuntu Sponsors Team, which is a direct subscriber.



More information about the Ubuntu-sponsors mailing list