Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
Plague Kernel
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Opt Out
Plague Kernel
Commits
d801df98
Verified
Commit
d801df98
authored
1 year ago
by
Opt Out
Browse files
Options
Downloads
Patches
Plain Diff
Fixed logic determining OS | Added option to choose between Host/VM kernel
parent
030ce84b
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
self_compilation.sh
+1
-2
1 addition, 2 deletions
self_compilation.sh
with
1 addition
and
2 deletions
self_compilation.sh
+
1
−
2
View file @
d801df98
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment