deal with x86 kde

This commit is contained in:
beast 2023-04-11 14:43:40 +08:00
parent 185e6fedca
commit b354d017fb
2 changed files with 17 additions and 2 deletions

View File

@ -334,13 +334,18 @@ def install_packages(installation,additional_packages):
return
try:
# install additional_packages package
tmpFolder = '/tmp/acosail'
installation.log("Installing additional_packages package, {}".format("..."), level=logging.INFO)
archinstall.SysCommand('chroot {} bash -c "mkdir -p {}"'.format(target,tmpFolder))
archinstall.SysCommand('chroot {} bash -c "cp -a /media/pool/other/plugins/ {}"'.format(target,tmpFolder))
for key_name in additional_packages:
installation.log("Installing {} package...".format(key_name), level=logging.INFO)
if key_name == 'kde-plasma':
installation.log("tar -zxvf {} to folder {}".format(key_name,tmpFolder))
archinstall.SysCommand('chroot {} bash -c "dpkg -i /media/pool/other/plugins/{}/*.deb"'.format(target,'psmisc'))
time.sleep(0.1)
archinstall.SysCommand('chroot {} bash -c "dpkg -i /media/pool/other/plugins/{}/*.deb"'.format(target,key_name))
archinstall.SysCommand('chroot {} bash -c "tar -zxvf {}/plugins/{}.tgz -C /tmp/acosail/plugins/"'.format(target,tmpFolder,key_name))
archinstall.SysCommand('chroot {} bash -c "dpkg -i {}/plugins/{}/*.deb"'.format(target,tmpFolder,key_name))
# change default dm
time.sleep(0.1)
archinstall.SysCommand('chroot {} bash -c "rm -rf /etc/systemd/system/display-manager.service"'.format(target))
@ -350,6 +355,7 @@ def install_packages(installation,additional_packages):
installation.log(f"additional_packages error: {error!r}", level=logging.ERROR, fg="red")
raise error
archinstall.SysCommand('chroot {} bash -c "rm -rf {}"'.format(target,tmpFolder))
installation.log("Installing additional_packages finish.", level=logging.INFO)
installation.log("And The default startup session may not be KDE-Plasma DM, and you can modify it on the login page.", level=logging.INFO)

9
package_images.sh Normal file
View File

@ -0,0 +1,9 @@
#/sbin/bin
. /root/miniconda3/etc/profile.d/conda.sh
conda activate
rm -rf /target/tmp
rm -rf /target/var/cache/*
cd /target && tar -caf /data/rootfs.tar.xz .