Skip to content

Commit ca8f0d3

Browse files
authored
Update !install_system_btfrs.sh
1 parent 9bbf9a8 commit ca8f0d3

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

!install_system_btfrs.sh

+1-8
Original file line numberDiff line numberDiff line change
@@ -168,11 +168,6 @@ grub-install --recheck /dev/sda #Or /dev/vda for VPS
168168
## https://wiki.archlinux.org/title/GRUB#Configuration
169169
# sed -i 's/#GRUB_DISABLE_OS_PROBER=false/GRUB_DISABLE_OS_PROBER=false/' /etc/default/grub
170170
# sed -i 's/GRUB_TIMEOUT=5/GRUB_TIMEOUT=0/' /etc/default/grub
171-
## https://ventureo.codeberg.page/source/kernel-parameters.html
172-
# sed -i 's/GRUB_CMDLINE_LINUX_DEFAULT="loglevel=3 quiet"/GRUB_CMDLINE_LINUX_DEFAULT="quiet splash rootfstype=btrfs raid=noautodetect mitigations=off preempt=none audit=0 page_alloc.shuffle=1 split_lock_detect=off pci=pcie_bus_perf"/' /etc/default/grub
173-
# sed -i "s/rootfstype=btrfs /rootfstype=btrfs lpj=$(dmesg | grep -Po '(?<=BogoMIPS \(lpj=)(\d+)') /" /etc/default/grub
174-
# echo "GRUB_EARLY_INITRD_LINUX_STOCK=''" >> /etc/default/grub
175-
grub-mkconfig -o /boot/grub/grub.cfg
176171

177172
#Double check files!
178173
cat /etc/fstab /etc/hostname /etc/hosts
@@ -199,8 +194,6 @@ printf "[Service]\nExecStart=\nExecStart=/usr/lib/systemd/systemd-networkd-wait-
199194
systemctl enable systemd-networkd
200195

201196
#Zram https://wiki.archlinux.org/title/Zram#Using_zram-generator
202-
sed -i "s/quiet/quiet zswap.enabled=0 /;s/ / /" /etc/default/grub
203-
grub-mkconfig -o /boot/grub/grub.cfg
204197
pacman -S zram-generator
205198
printf "[zram0]\nzram-size = min(ram / 2, 4096)\ncompression-algorithm = zstd\n" > /etc/systemd/zram-generator.conf
206199

@@ -288,4 +281,4 @@ cd paru && makepkg -fsri && cd .. && rm -rf paru
288281
# echo "/.swap/swapfile none swap defaults 0 0" | sudo tee -a /etc/fstab
289282

290283
#Todo https://wiki.archlinux.org/title/Btrfs#Booting_into_snapshots grub-btrfs
291-
#Optional: https://ventureo.codeberg.page/source/extra-optimizations.html#alhp-repository
284+
#Optional: https://ventureo.codeberg.page/source/

0 commit comments

Comments
 (0)