mirror of
https://0xacab.org/optout/plague-kernel.git
synced 2025-04-20 07:25:57 -04:00
Fixed logic determining OS | Added option to choose between Host/VM kernel
This commit is contained in:
parent
030ce84b1f
commit
d801df98a9
@ -60,19 +60,18 @@ if [[ ! -d /usr/src/linux-hardened-"$KVER" ]]; then
|
||||
tar -xf "$KVER".tar.gz -C /usr/src/
|
||||
fi
|
||||
|
||||
# Move to staging directory
|
||||
cd /usr/src/linux-hardened-"$KVER"
|
||||
|
||||
# Pull down plague kconfig
|
||||
read -rp 'Are you compiling this kernel for a physical machine (host) or virtual machine (VM)? [host/vm]: ' response
|
||||
if [[ "${response,,}" = "vm" ]]
|
||||
then
|
||||
# Perform task(s) specifically for VM environments
|
||||
echo "Compiling a VM kernel"
|
||||
wget https://0xacab.org/optout/plague-kernel/-/raw/main/virt_hardened.config -O .config
|
||||
## virt_hardened.config is still a WIP
|
||||
elif [[ "${response,,}" = "host" ]]
|
||||
then
|
||||
# Perform task(s) specifically for Host environments
|
||||
echo "Compiling a host kernel"
|
||||
wget https://0xacab.org/optout/plague-kernel/-/raw/main/host_hardened.config -O .config
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user