From 3f62e5be605fd5f60a8ff633d7766e27ed0915ee Mon Sep 17 00:00:00 2001 From: s_c_c Date: Thu, 25 Apr 2024 22:45:24 +0800 Subject: [PATCH] fix run code error --- config/rpm.list | 4 +++- scripts/install_devkit.sh | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/config/rpm.list b/config/rpm.list index 0091424..f8d5af5 100644 --- a/config/rpm.list +++ b/config/rpm.list @@ -295,4 +295,6 @@ tcpdump fio ipmitool libaio-devel -numactl-devel \ No newline at end of file +numactl-devel +ffmpeg +ffmpeg-devel \ No newline at end of file diff --git a/scripts/install_devkit.sh b/scripts/install_devkit.sh index 0f90364..a3e553a 100644 --- a/scripts/install_devkit.sh +++ b/scripts/install_devkit.sh @@ -37,7 +37,7 @@ function install_plugins() if [[ -f "${file}" ]]; then cp "${file}" "${ROOTFS}/${plugin}" display_alert "Installing " "${plugin}" "info" - run_on_rootfs "code --no-sandbox --user-data-dir ~ --install-extension ${plugin}" + chroot --userspec=0:0 "${ROOTFS}" /bin/bash -c "code --no-sandbox --user-data-dir ~ --install-extension ${plugin}" rm ${ROOTFS}/${plugin} else display_alert "Install failed " "${plugin}" "error" @@ -77,7 +77,7 @@ function install_kit() cp -f ${SRC}/scripts/devkit/deploy_devkit.sh ${ROOTFS}/tmp/deploy_devkit.sh mount_chroot ${ROOTFS} - run_on_rootfs "expect /tmp/deploy_devkit.sh /tmp/DevKit-All-24.0.T10-Linux-Kunpeng" + chroot --userspec=0:0 "expect /tmp/deploy_devkit.sh /tmp/DevKit-All-24.0.T10-Linux-Kunpeng" umount_chroot ${ROOTFS} rm -rf ${ROOTFS}/tmp/DevKit-All-24.0.T10-Linux-Kunpeng -- Gitee