summaryrefslogtreecommitdiffstats
path: root/tools/daisy-img-modify.sh
AgeCommit message (Collapse)AuthorFilesLines
2018-09-10Fix loop device nameAlex Yang1-3/+3
In [1], ${loopdevice:0:5} is wrong when loopdevice is loop13p1. [1] https://build.opnfv.org/ci/job/daisy-kolla-build-master/36/console Change-Id: I3bfcf771c8b510f9c5c1f853a1a61a299106d5dc Signed-off-by: Alex Yang <yangyang1@zte.com.cn>
2018-08-20Change the owner of created image dirAlex Yang1-1/+4
The directory created by SUDO cannot be cleaned by jenkins. https://build.opnfv.org/ci/job/daisy-kolla-build-master/31/ Change-Id: I02f11d72a80e173f7fef9d3b875f95c2d7b4f626 Signed-off-by: Alex Yang <yangyang1@zte.com.cn>
2018-01-22Mount xfs image with -o nouuidAlex Yang1-1/+7
In [1], an error occured: "XFS (dm-6): Filesystem has duplicate UUID ... - can't mount". [1]: https://build.opnfv.org/ci/job/daisy-deploy-zte-pod9-daily-master/11/console Change-Id: I84052f481662e370ef8d41d62d356ad9a5e6e3c2 Signed-off-by: Alex Yang <yangyang1@zte.com.cn>
2017-12-14Use deployserver's timezone in daisy VMAlex Yang1-0/+6
Change-Id: Ie58af69f444924494d1a2949ba894ae55da7efc9 Signed-off-by: Alex Yang <yangyang1@zte.com.cn>
2017-04-19Solve "Buffer I/O error on dev loop0p1" error messageZhijiang Hu1-2/+2
This add "losetup" before "kpartx -l" command, otherwise, we encountered many "Buffer I/O error on dev loop0p1, logical block 104854018, async page read" in dmesg. But they are seems no harm. No need to do "losetup -d" after "losetup", because "kpartx -dv" will do that for us. Change-Id: I326ef35a241d8b09f0f3f3fc90ef749df3f4768f Signed-off-by: Zhijiang Hu <hu.zhijiang@zte.com.cn>
2017-04-16The image file is deleted mistakenlyAlex Yang1-3/+3
There's an mistake in patch 33327. See https://gerrit.opnfv.org/gerrit/#/c/33327/ The cleanup function was called twice, so the image file was deleted. Change-Id: I5fe6a90b46739d1c6d8b66365d2c8e55350cde00 Signed-off-by: Alex Yang <yangyang1@zte.com.cn>
2017-04-14add the argument WORKDIR in daisy-img-modify.shzhongjun1-2/+10
the daisy install tmp workdir can be configurated as an input argument in deploy.sh,and it also should be used in subshell daisy-img-modify.sh,so add the input argument -w workdir in daisy-img-modify.sh. 1.add an input argument -w workdir in daisy-img-modify.sh. 2.modify the WORKDIR default value to /tmp/workdir/daisy. 3.code refactor to put the centos7.qcow2 file clean statement from the deploy.sh to daisy-img-modify.sh. Change-Id: Id375a15ad2839c209329e644c5e032d044604e7d Signed-off-by: zhongjun <zhong.jun@zte.com.cn>
2017-03-09Eliminate the exception in image-modifyAlex Yang1-2/+12
Sometimes kpartx fails when it deletes the partition device mappings because of the automatic mounting to /run/media/root/xxxx. So umounting and removing forcibly are needed. Change-Id: Ic8a19ef9139adb9c0c5c4bead0ae0ffbd92f24b8 Signed-off-by: Alex Yang <yangyang1@zte.com.cn>
2016-12-09download and modify centos imageAlex Yang1-0/+242
Change-Id: I1934fb75d5d7f4a50f44c06080fbcec4f6c81f02 Signed-off-by: Alex Yang <yangyang1@zte.com.cn>