Skip to content

Commit

Permalink
fix: Fix issue with Waydroid due to apparmor entry in LXC config
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleGospo committed Apr 24, 2024
1 parent 445a359 commit baf680d
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit baf680d

Please sign in to comment.