From 6a29177c2677acefb06f343fa8e7e767538a1765 Mon Sep 17 00:00:00 2001 From: Randall Winkhart Date: Tue, 27 Aug 2024 01:51:48 -0400 Subject: [PATCH] Enable SysRq key so freezes less make me want to cry --- chrootInstall.sh | 6 +++--- install.sh | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/chrootInstall.sh b/chrootInstall.sh index 5c80ef5..1eea318 100755 --- a/chrootInstall.sh +++ b/chrootInstall.sh @@ -39,11 +39,11 @@ fi cp /usr/share/locale/en\@quot/LC_MESSAGES/grub.mo /boot/grub/locale/en.mo curl https://raw.githubusercontent.com/rwinkhart/artix-install-script/main/config-files/grub -o /etc/default/grub if [ "$gpu" == 'NVIDIA' ]; then - echo "GRUB_CMDLINE_LINUX_DEFAULT=\"loglevel=3 quiet nowatchdog mem_sleep_default=deep nvidia-drm.modeset=1\"" >> /etc/default/grub + echo "GRUB_CMDLINE_LINUX_DEFAULT=\"loglevel=3 quiet sysrq_always_enabled=1 nowatchdog mem_sleep_default=deep nvidia-drm.modeset=1\"" >> /etc/default/grub elif [ "$gpu" == 'AMD' ]; then - echo "GRUB_CMDLINE_LINUX_DEFAULT=\"loglevel=3 quiet nowatchdog mem_sleep_default=deep amdgpu.ppfeaturemask=0xffffffff\"" >> /etc/default/grub + echo "GRUB_CMDLINE_LINUX_DEFAULT=\"loglevel=3 quiet sysrq_always_enabled=1 nowatchdog mem_sleep_default=deep amdgpu.ppfeaturemask=0xffffffff\"" >> /etc/default/grub else - echo "GRUB_CMDLINE_LINUX_DEFAULT=\"loglevel=3 quiet nowatchdog mem_sleep_default=deep\"" >> /etc/default/grub + echo "GRUB_CMDLINE_LINUX_DEFAULT=\"loglevel=3 quiet sysrq_always_enabled=1 nowatchdog mem_sleep_default=deep\"" >> /etc/default/grub fi grub-mkconfig -o /boot/grub/grub.cfg diff --git a/install.sh b/install.sh index 1f121f0..61e30e6 100755 --- a/install.sh +++ b/install.sh @@ -3,7 +3,7 @@ loadkeys us echo ---------------------------------------------------------------------------------------------- echo rwinkhart\'s Artix Install Script -echo last updated August 26, 2024 \(rev. B\) +echo last updated August 27, 2024 \(rev. A\) echo ---------------------------------------------------------------------------------------------- echo You will be asked some questions before installation. echo -e "----------------------------------------------------------------------------------------------\n" @@ -223,7 +223,7 @@ echo "hostname=\'"$hostname"\'" > /mnt/etc/conf.d/hostname base_devel='db diffutils gc guile libisl libmpc perl autoconf automake bash dash binutils bison esysusers etmpfiles fakeroot file findutils flex gawk gcc gettext grep groff gzip libtool m4 make pacman pacman-contrib patch pkgconf sed opendoas texinfo which bc udev ntp' basestrap /mnt base $base_devel openrc elogind-openrc linux linux-firmware git man-db iptables-nft -# applying IPv6 privacy entensions for all interfaces +# applying IPv6 privacy extensions for all interfaces echo -e 'net.ipv6.conf.all.use_tempaddr = 2\nnet.ipv6.conf.default.use_tempaddr = 2' > /mnt/etc/sysctl.d/40-ipv6.conf for int in "${interfaces[@]}"; do echo "net.ipv6.conf.${int:15}.use_tempaddr = 2" >> /mnt/etc/sysctl.d/40-ipv6.conf