Skip to content

Commit

Permalink
v6.25
Browse files Browse the repository at this point in the history
+ DietPi-Patch | Add usb-storage quirk to disable UAS for some Seagate drive that does not support it
+ DietPi-Patch | Cleanup nouveau blacklist where module option was doubled
  • Loading branch information
MichaIng authored Jun 25, 2019
1 parent 72f3029 commit cebf5f3
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions dietpi/patch_file
Original file line number Diff line number Diff line change
Expand Up @@ -2066,6 +2066,25 @@ Use "dietpi-config" to adjust these settings to your needs.'
[[ -d '/usr/lib/armbian' ]] && rm -R /usr/lib/armbian
[[ -d '/usr/share/armbian' ]] && rm -R /usr/share/armbian
#-------------------------------------------------------------------------------
# Update x86_64 kernel module settings
if (( $G_HW_ARCH == 10 )); then

# - Cleanup nouveau disabling
rm -f /etc/modprobe.d/*nouveau*
cat << _EOF_ > /etc/modprobe.d/dietpi-disable_nouveau.conf
blacklist nouveau
blacklist lbm-nouveau
options nouveau modeset=0
alias nouveau off
alias lbm-nouveau off
_EOF_
# - Apply usb-storage quirks to disable UAS for unsupported drives (Seagate ST5000LM000-2AN170): https://github.com/MichaIng/DietPi/issues/2905
echo 'options usb-storage quirks=0bc2:ab30:u' > /etc/modprobe.d/dietpi-usb-storage_quirks.conf
# - Update initramfs with above changes
update-initramfs -u

fi
#-------------------------------------------------------------------------------
# Reinstalls:
# O!MPD update to master: https://github.com/MichaIng/DietPi/pull/2884
# myMPD update to master: https://github.com/MichaIng/DietPi/pull/2883
Expand Down

0 comments on commit cebf5f3

Please sign in to comment.