mirror of
https://github.com/ublue-os/bazzite.git
synced 2025-02-25 12:41:00 +00:00
fix: Allow trim on encrypted disks
This commit is contained in:
parent
cf2df01192
commit
05d7fd89cf
@ -69,6 +69,10 @@ if [[ $KARGS =~ "nomodeset" ]]; then
|
||||
NEEDED_KARGS="$NEEDED_KARGS --delete=\"nomodeset\""
|
||||
fi
|
||||
|
||||
if [[ ! $KARGS =~ "rd.luks.options" ]]; then
|
||||
NEEDED_KARGS="$NEEDED_KARGS --append=\"rd.luks.options=discard\""
|
||||
fi
|
||||
|
||||
if [[ ! -z "$NEEDED_KARGS" ]]; then
|
||||
echo "Found needed karg changes, applying the following: $NEEDED_KARGS"
|
||||
rpm-ostree kargs ${NEEDED_KARGS} --reboot
|
||||
|
Loading…
x
Reference in New Issue
Block a user