Skip to content

Commit 1f8c80f

Browse files
committed
fix(hardware-setup): Don't remove amdgpu kargs when no longer in use
Could cause a potential loop
1 parent 451b393 commit 1f8c80f

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

system_files/desktop/shared/usr/bin/bazzite-hardware-setup

-16
Original file line numberDiff line numberDiff line change
@@ -100,22 +100,6 @@ if grep -qz "Kernel driver in use: radeon" <<< $GPU_ID; then
100100
if [[ ! $KARGS =~ "amdgpu.cik_support" ]]; then
101101
NEEDED_KARGS="$NEEDED_KARGS --append=amdgpu.cik_support=1"
102102
fi
103-
elif grep -qvz "Kernel driver in use: amdgpu" <<< $GPU_ID; then
104-
if [[ $KARGS =~ "radeon.si_support" ]]; then
105-
NEEDED_KARGS="$NEEDED_KARGS --delete=radeon.si_support=0"
106-
fi
107-
108-
if [[ $KARGS =~ "radeon.cik_support" ]]; then
109-
NEEDED_KARGS="$NEEDED_KARGS --delete=radeon.cik_support=0"
110-
fi
111-
112-
if [[ $KARGS =~ "amdgpu.si_support" ]]; then
113-
NEEDED_KARGS="$NEEDED_KARGS --delete=amdgpu.si_support=1"
114-
fi
115-
116-
if [[ $KARGS =~ "amdgpu.cik_support" ]]; then
117-
NEEDED_KARGS="$NEEDED_KARGS --delete=amdgpu.cik_support=1"
118-
fi
119103
fi
120104

121105
if [[ $IMAGE_FLAVOR = "nvidia" ]]; then

0 commit comments

Comments
 (0)