scr/kernel-update.sh

25 lines
429 B
Bash
Raw Normal View History

2023-01-15 03:25:02 +00:00
#!/bin/zsh
# Inference
# Kernel - Update
# Copyright 2023 Inference
# SPDX-License-Identifier: BSD-3-Clause-Clear
2023-01-15 03:53:05 +00:00
# Version: 0.0.2.2
2023-01-15 03:25:02 +00:00
2023-01-15 03:53:05 +00:00
echo "Enter kernel version:"
echo ""
2023-01-15 03:25:02 +00:00
read KVER
2023-01-15 03:53:05 +00:00
echo ""
2023-01-15 03:25:02 +00:00
2023-01-15 04:42:26 +00:00
doas zsh -c\
"mount /dev/nvme0n1p1 /boot/ &&\
make --jobs 4 &&\
make install &&\
make modules_install &&\
dracut --kver=${KVER} --compress=zstd --force -a crypt &&\
grub-mkconfig -o /boot/grub/grub.cfg &&\
2023-01-15 03:25:02 +00:00
umount /boot/"