👷 adjust for plasma6 and kf6

This commit is contained in:
Vladislav Nepogodin committed 2024-03-07 03:30:55 +04:00
1 parent c97b3c9713
commit 809f0ee204
4 files changed
+20 -8

No files matched your search

+16
View File
@@ -114,6 +114,20 @@ change_grub_version() {
sed -i "s/CACHYOS_VERSION=\".*\"/CACHYOS_VERSION=\"${_version}\"/" ${src_dir}/archiso/grub/grub.cfg
}
generate_environment() {
local _profile="$1"
if [ "$_profile" == "kde" ]; then
cat << 'EOF' > ${src_dir}/archiso/airootfs/etc/environment
ZPOOL_VDEV_NAME_PATH=1
EOF
else
cat << 'EOF' > ${src_dir}/archiso/airootfs/etc/environment
QT_QPA_PLATFORMTHEME=qt5ct
ZPOOL_VDEV_NAME_PATH=1
EOF
fi
}
prepare_profile(){
profile=$1
@@ -150,6 +164,8 @@ prepare_profile(){
die "Unknown profile: [%s]" "${profile}"
fi
generate_environment "${profile}"
iso_file=$(gen_iso_fn).iso
}