diff --git a/self_compilation.sh b/self_compilation.sh index 1496e2d3084ed04170c9a296e397bb329d12e4f0..96b2dbe5ecf57c6448d8ccad000cc431486a11bb 100644 --- a/self_compilation.sh +++ b/self_compilation.sh @@ -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