The short answer .... The $MY_REPO variable must now be defined before you run download_mirror.sh.

I'll check the docs ...

Scott

On 2020-03-03 1:55 a.m., Shuai wrote:

Hi Communityer

Regarding the StarlingX Build Guide

When we built the latest version of StarlingX, we found some build guide issues and raised them here.

Guide Pathhttps://docs.starlingx.io/developer_resources/build_guide.html

Issues (1). Paragraph: Build the CentOS mirror repository

cd $HOME/tools/centos-mirror-tools/
docker run -it --volume $(pwd):/localdisk local/$USER-stx-builder:7.4 bash
cd localdisk && bash download_mirror.sh

The above steps are no longer applicable to the current StarlingX Master environment construction.

At the same time, this step will directly lead to the following download error.

 [root@5fc5c5f5f610 /]# cd localdisk && bash download_mirror.sh
download_mirror.sh: line 8: /localdisk/../toCOPY/lst_utils.sh: No such file or directory
download_mirror.sh: line 232: merge_lst: command not found
download_mirror.sh: line 233: merge_lst: command not found
download_mirror.sh: line 234: merge_lst: command not found
download_mirror.sh: line 235: merge_lst: command not found
download_mirror.sh: line 236: merge_lst: command not found
--------------------------------------------------------------
WARNING: this script HAS TO access internet (http/https/ftp),
so please make sure your network working properly!!
step #0: Configuring yum repos ...
download_mirror.sh: line 345: [: !=: unary operator expected

As the result, the compilation and construction of StarlingX could not be implemented.

 

Temporary countermeasure:

In order for download_mirror.sh to run normally, we have adopted the following methods to deal with it, Methods as below:

cd $HOME/tools
bash tb.sh run
bash tb.sh exec
--------------------------
[zs@af1b85270819 /]$ cd $MY_REPO_ROOT_DIR
[zs@af1b85270819 starlingx]$ cd stx-tools/centos-mirror-tools/
[zs@af1b85270819 centos-mirror-tools]$sudo MY_REPO=/localdisk/designer/zs/starlingx/cgcs-root ./download_mirror.sh

Although this solution can currently solve the download_mirror.sh Error problem temporarily.

However,We hope the community can provide better solutions to share, Thank you!

 

--------------

From: Neusoft - Shuai

 


---------------------------------------------------------------------------------------------------
Confidentiality Notice: The information contained in this e-mail and any accompanying attachment(s)
is intended only for the use of the intended recipient and may be confidential and/or privileged of
Neusoft Corporation, its subsidiaries and/or its affiliates. If any reader of this communication is
not the intended recipient, unauthorized use, forwarding, printing,  storing, disclosure or copying
is strictly prohibited, and may be unlawful.If you have received this communication in error,please
immediately notify the sender by return e-mail, and delete the original message and all copies from
your system. Thank you.
---------------------------------------------------------------------------------------------------


_______________________________________________
Starlingx-discuss mailing list
Starlingx-discuss@lists.starlingx.io
http://lists.starlingx.io/cgi-bin/mailman/listinfo/starlingx-discuss