mirror of
https://github.com/ublue-os/bazzite.git
synced 2025-02-19 21:40:57 +00:00
fix(deck): Correct zram disabling karg
This commit is contained in:
parent
23bb5cb8f8
commit
ea5b583bca
@ -320,7 +320,7 @@ zram-on:
|
||||
ublue-update --wait
|
||||
KARGS=$(rpm-ostree kargs)
|
||||
if grep -q 'zram' <<< ${KARGS}; then
|
||||
rpm-ostree kargs --delete=zram
|
||||
rpm-ostree kargs --delete=systemd.zram=0
|
||||
echo 'ZRAM enabled. Please reboot.'
|
||||
else
|
||||
echo 'ZRAM is already enabled.'
|
||||
@ -332,7 +332,7 @@ zram-off:
|
||||
ublue-update --wait
|
||||
KARGS=$(rpm-ostree kargs)
|
||||
if grep -qv 'zram' <<< ${KARGS}; then
|
||||
rpm-ostree kargs --append=zram=0
|
||||
rpm-ostree kargs --append=systemd.zram=0
|
||||
echo 'ZRAM disabled. Please reboot.'
|
||||
else
|
||||
echo 'ZRAM is already disabled.'
|
||||
|
Loading…
x
Reference in New Issue
Block a user