提交 ee5a4fc6 编写于 作者: O openeuler-ci-bot 提交者: Gitee

!4 Use config file as repo and add core list

Merge pull request !4 from whoisxxx/master
此差异已折叠。
[oe-rv]
name=oe-rv
baseurl=@RPMREPOWEBSRV@
enabled=1
gpgcheck=0
......@@ -8,7 +8,9 @@
# in RISC-V system, or x86/aarch64 system that support
# cross-arch dnf installation.
CORE_RPMS="glibc systemd vim findutils coreutils binutils net-tools systemd-udev libssh openssh openssl passwd git NetworkManager iproute network-scripts dnf wget procps-ng dnf-plugins-core rpm-build"
. globals.inc
CORE_RPMS="systemd vim coreutils net-tools systemd-udev libssh openssh passwd git NetworkManager dnf wget procps-ng dnf-plugins-core rpm-build"
set -e
set -x
......@@ -41,7 +43,9 @@ mount --make-rslave /var/tmp/mnt/dev
mount --make-rslave /var/tmp/mnt/sys
rpm --root /var/tmp/mnt --initdb
yum install --installroot /var/tmp/mnt --repo oe-rv $CORE_RPMS -y
sed -e "s,@RPMREPOWEBSRV@,$WEB_RPM_REPO_SRV,g" < ./assets/openEuler-rv64.repo.in > /etc/yum.repo.d/oe-riscv.repo
dnf install --installroot /var/tmp/mnt --repo oe-rv $CORE_RPMS -y
echo "Change default passwd to empty"
sed -i '1s/*//' /var/tmp/mnt/etc/shadow
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册