Code Review
/
yardstick.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Ansible typo fix, whitespace
[yardstick.git]
/
tools
/
yardstick-img-modify
diff --git
a/tools/yardstick-img-modify
b/tools/yardstick-img-modify
index
81a9ed7
..
5997685
100755
(executable)
--- a/
tools/yardstick-img-modify
+++ b/
tools/yardstick-img-modify
@@
-83,9
+83,6
@@
download() {
# mount image
setup() {
# qemu-img resize $raw_imgfile +5GB
# mount image
setup() {
# qemu-img resize $raw_imgfile +5GB
- if [ "${YARD_IMG_ARCH}" = "arm64" ]; then
- echo -e "d\nn\np\n1\n\n\nw" | parted -l $raw_imgfile
- fi
mkdir -p $mountdir
loopdevice=$(kpartx -l $raw_imgfile | head -1 | cut -f1 -d ' ')
mkdir -p $mountdir
loopdevice=$(kpartx -l $raw_imgfile | head -1 | cut -f1 -d ' ')
@@
-100,6
+97,9
@@
setup() {
mount -t proc none $mountdir/proc
cp $cmd $mountdir/$(basename $cmd)
mount -t proc none $mountdir/proc
cp $cmd $mountdir/$(basename $cmd)
+ if [ "${YARD_IMG_ARCH}" = "arm64" ]; then
+ cp /usr/bin/qemu-aarch64-static $mountdir/usr/bin
+ fi
}
# modify image running a script using in a chrooted environment
}
# modify image running a script using in a chrooted environment