-
Notifications
You must be signed in to change notification settings - Fork 397
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Fix issue with VMs not starting on ChromeOS r126 - Further review kernel config
- Loading branch information
Showing
2 changed files
with
18 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# This patch adjusts the "cap_bpf" in patchpanel service according to the selected kernel (cap_bpf is only available on 5.10+ kernels). | ||
|
||
if [ -f /roota/etc/init/patchpanel.conf ]; then | ||
if [ "$(cat /proc/cmdline | cut -d' ' -f1 | cut -d'/' -f2)" == "chromebook-4.19" ] || [ "$(cat /proc/cmdline | cut -d' ' -f1 | cut -d'/' -f2)" == "chromebook-5.4" ]; then | ||
sed -i 's@caps="${caps},cap_bpf"@# caps="${caps},cap_bpf"@g' /roota/etc/init/patchpanel.conf | ||
else | ||
sed -i 's@# caps="${caps},cap_bpf"@caps="${caps},cap_bpf"@g' /roota/etc/init/patchpanel.conf | ||
fi | ||
fi | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters