Skip to content

Instantly share code, notes, and snippets.

@Lucretia
Created January 28, 2024 09:56
Show Gist options
  • Save Lucretia/c3d2ce767db154e884b75bc99e271c7d to your computer and use it in GitHub Desktop.
Save Lucretia/c3d2ce767db154e884b75bc99e271c7d to your computer and use it in GitHub Desktop.
# cat genkernel.sh
#!/bin/sh
#genkernel --lvm --btrfs --menuconfig --oldconfig all
#genkernel --lvm --btrfs --menuconfig --oldconfig --clean --firmware all
if [ $# > 0 ] && [ "$1" != "-r" ]; then
genkernel --lvm --btrfs --menuconfig --oldconfig --save-config --kernel-cc=distcc all #--microcode=amd all
fi
#exit
#genkernel --lvm --btrfs --menuconfig --oldconfig --save-config --kernel-cc=distcc all
if [ $? == 0 ]; then
mount /boot/efi
grub-mkconfig -o /boot/grub/grub.cfg
grub-install --efi-directory=/boot/efi --removable --boot-directory=/boot/ --target=x86_64-efi
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment