lockfile-create download link compatible with x86_64 and aarch64 architectures.
Signed-off-by: Liu Yinsi liuyinsi@163.com --- sparrow/0-package/os/openEuler | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/sparrow/0-package/os/openEuler b/sparrow/0-package/os/openEuler index bd1f728..e408d77 100755 --- a/sparrow/0-package/os/openEuler +++ b/sparrow/0-package/os/openEuler @@ -24,7 +24,8 @@ pkgs=(
yum install -y "${pkgs[@]}"
-wget http://rpmfind.net/linux/openmandriva/cooker/repository/aarch64/main/release... -wget http://rpmfind.net/linux/openmandriva/cooker/repository/aarch64/main/release... +arch=$(uname -p) +wget http://rpmfind.net/linux/openmandriva/cooker/repository/$%7Barch%7D/main/rel... +wget http://rpmfind.net/linux/openmandriva/cooker/repository/$%7Barch%7D/main/rel...
-rpm -i lib64lockfile1-1.16-1-omv4002.aarch64.rpm lockfile-progs-0.1.18-5-omv4002.aarch64.rpm +rpm -i lib64lockfile1-1.16-1-omv4002.${arch}.rpm lockfile-progs-0.1.18-5-omv4002.${arch}.rpm
On Fri, Oct 23, 2020 at 10:45:35AM +0800, Liu Yinsi wrote:
lockfile-create download link compatible with x86_64 and aarch64 architectures.
Signed-off-by: Liu Yinsi liuyinsi@163.com
sparrow/0-package/os/openEuler | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/sparrow/0-package/os/openEuler b/sparrow/0-package/os/openEuler index bd1f728..e408d77 100755 --- a/sparrow/0-package/os/openEuler +++ b/sparrow/0-package/os/openEuler @@ -24,7 +24,8 @@ pkgs=(
yum install -y "${pkgs[@]}"
-wget http://rpmfind.net/linux/openmandriva/cooker/repository/aarch64/main/release... -wget http://rpmfind.net/linux/openmandriva/cooker/repository/aarch64/main/release... +arch=$(uname -p)
i find uname -p -i -m all can get arch_type
how to select it, may be -p will be better
Thanks, Shenwei
+wget http://rpmfind.net/linux/openmandriva/cooker/repository/$%7Barch%7D/main/rel... +wget http://rpmfind.net/linux/openmandriva/cooker/repository/$%7Barch%7D/main/rel...
-rpm -i lib64lockfile1-1.16-1-omv4002.aarch64.rpm lockfile-progs-0.1.18-5-omv4002.aarch64.rpm
+rpm -i lib64lockfile1-1.16-1-omv4002.${arch}.rpm lockfile-progs-0.1.18-5-omv4002.${arch}.rpm
2.23.0
On Fri, Oct 23, 2020 at 10:45:35AM +0800, Liu Yinsi wrote:
lockfile-create download link compatible with x86_64 and aarch64 architectures.
Signed-off-by: Liu Yinsi liuyinsi@163.com
sparrow/0-package/os/openEuler | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/sparrow/0-package/os/openEuler b/sparrow/0-package/os/openEuler index bd1f728..e408d77 100755 --- a/sparrow/0-package/os/openEuler +++ b/sparrow/0-package/os/openEuler @@ -24,7 +24,8 @@ pkgs=(
yum install -y "${pkgs[@]}"
-wget http://rpmfind.net/linux/openmandriva/cooker/repository/aarch64/main/release... -wget http://rpmfind.net/linux/openmandriva/cooker/repository/aarch64/main/release... +arch=$(uname -p)
arch=$(arch) will be better. uname may not get right information
Thanks, Wang Yong
-wget http://rpmfind.net/linux/openmandriva/cooker/repository/aarch64/main/release... -wget http://rpmfind.net/linux/openmandriva/cooker/repository/aarch64/main/release... +arch=$(uname -p)
arch=$(arch) will be better.
good
Thanks, Yinsi
uname may not get right information
Thanks, Wang Yong