Public bug reported: Binary package hint: rootstock
Description: Ubuntu 10.04.1 LTS Release: 10.04 2.6.32-24-generic rootstock: Installed: 0.1.99.3-0ubuntu1 Candidate: 0.1.99.3-0ubuntu1 running: sudo rootstock --fqdn ubuntu --login jdoe --password letmein --imagesize 2G --seed wget,nano,linux-firmware,wireless-tools,usbutils --dist lucid --serial ttyS2 --components "main universe multiverse" --kernel-image http://www.rcn-ee.net/deb/lucid/v2.6.33.5-l3/linux- image-2.6.33.5-l3_1.0lucid_armel.deb Problem: line 381 generates /usr/bin/rootstock: 792: Bad substitution from line 792 on setup_kernel_image call ###output### I: Configuring initramfs-tools... I: Base system installed successfully. I: First stage install done I: Downloading kernel image (deb) from external site I: linux-image-2.6.33.5-l3_1.0lucid_armel.deb download complete I: 2.6.33.5-l3_1.0lucid_armel.deb <--- added echo to check string manipulation output, confirmed problem on line 381 /usr/bin/rootstock: 792: Bad substitution ##### setup_kernel_image() function failure 381. KERNEL_IMG_REL=${KERNEL_IMG_REL/_*_armel.deb} changed string manipulation approach from: Substring Replacement ${string/substring to: Substring Removal ${string%%substring} removing longestmatch of substring from back of string string removal keeps kernelversion name indepentent removing from _ to b in _1.0lucid_armel.deb KERNEL_IMG_REL=${KERNEL_IMG_REL%%_*b} output result: I: Downloading kernel image (deb) from external site I: linux-image-2.6.33.5-l3_1.0lucid_armel.deb download complete <<-- full image version I: 2.6.33.5-l3_1.0lucid_armel.deb 1 <-- first string removal I: 2.6.33.5-l3 2 <-- second string removal I: Setting up serial tty in image procedure succesfully completed images and fs generated: # armel-rootfs-<date> # vmlinuz-2.6.<version> # initrd.img-2.6.<version> tried different string manipulation with no good result, seems like the original string replacement string/substring /_*_armel.deb was miss interpreted or giving problems in execution (even if working on command line) tested and completed on Ubuntu 10.04.1 LTS lucid lynx ** Affects: rootstock (Ubuntu) Importance: Undecided Status: New ** Tags: 792 bad error lucid lynx rootstock substitution ubuntu -- setup_kernel_image function error: /usr/bin/rootstock: 793: Bad substitution https://bugs.launchpad.net/bugs/618508 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs