mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-05-02 11:40:51 +02:00
pentoo-updater: remove ram limit on usb subsystem
This commit is contained in:
parent
371f978cb2
commit
1d5ef4b3b7
1 changed files with 7 additions and 0 deletions
|
|
@ -168,6 +168,13 @@ update_kernel() {
|
|||
printf "Found an updated config for ${bestkern}, rebuilding...\n"
|
||||
fi
|
||||
|
||||
#update kernel command line as needed
|
||||
if ! grep -q usbfs_memory_mb /etc/default/grub; then
|
||||
#usbfs_memory_mb controls how much ram the usb system is allowed to use. The default limit is 16M which is insanely low.
|
||||
#we don't really need a limit here, so just remove the limit because why not
|
||||
sed -i 's#GRUB_CMDLINE_LINUX="#GRUB_CMDLINE_LINUX="usbcore.usbfs_memory_mb=0 #' /etc/default/grub
|
||||
fi
|
||||
|
||||
#then we set genkernel options as needed
|
||||
genkernelopts="--no-mrproper --disklabel --microcode --compress-initramfs-type=xz --bootloader=grub2"
|
||||
if grep -q btrfs /etc/fstab || grep -q btrfs /proc/cmdline; then
|
||||
|
|
|
|||
Loading…
Reference in a new issue