mirror of
https://github.com/ublue-os/bazzite.git
synced 2025-01-06 00:58:16 +00:00
fix: Fix issue with Waydroid due to apparmor entry in LXC config
This commit is contained in:
parent
445a35901f
commit
baf680da7c
@ -7,7 +7,7 @@ IMAGE_FLAVOR=$(jq -r '."image-flavor"' < $IMAGE_INFO)
|
||||
FEDORA_VERSION=$(jq -r '."fedora-version"' < $IMAGE_INFO)
|
||||
|
||||
# SCRIPT VERSION
|
||||
HWS_VER=37
|
||||
HWS_VER=38
|
||||
HWS_VER_FILE="/etc/bazzite/hws_version"
|
||||
HWS_VER_RAN=$(cat $HWS_VER_FILE)
|
||||
|
||||
@ -164,6 +164,12 @@ else
|
||||
echo "No minimum-free ZRAM changes needed"
|
||||
fi
|
||||
|
||||
# WAYDROID FIX
|
||||
if [[ -f "/var/lib/waydroid/lxc/waydroid/config" ]]; then
|
||||
echo "Removing unneeded apparmor entry from Waydroid LXC"
|
||||
sed -i '/lxc\.apparmor\.profile\s*=\s*unconfined/d' "/var/lib/waydroid/lxc/waydroid/config"
|
||||
fi
|
||||
|
||||
# NO-PSTATE FIX
|
||||
if grep -q "acpi-cpufreq" <<< "$(cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_driver)"; then
|
||||
sed -i 's/balanced=balanced$/balanced=balanced-no-pstate/g' /etc/tuned/ppd.conf
|
||||
|
Loading…
Reference in New Issue
Block a user