Skip to content
This repository has been archived by the owner on Jan 12, 2023. It is now read-only.

Commit

Permalink
Merge pull request #63 from kewu1992/modify_cmd_when_have_to
Browse files Browse the repository at this point in the history
Only disable signature verification when module.sig_enforce=1 is set
  • Loading branch information
kewu1992 authored Nov 19, 2020
2 parents c9b2ae4 + eb0edae commit 5e39ee4
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions cos-gpu-installer-docker/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -122,13 +122,9 @@ configure_kernel_module_locking() {
pushd "${mount_path}"

# Disable kernel module signature verification.
if grep -q "module.sig_enforce" /proc/cmdline; then
if grep -q "module.sig_enforce=1" /proc/cmdline; then
sed_cmds+=('s/module.sig_enforce=1/module.sig_enforce=0/g')
fi
else
sed_cmds+=('s/cros_efi/cros_efi module.sig_enforce=0/g')
fi;
if grep -q "module.sig_enforce=1" /proc/cmdline; then
sed_cmds+=('s/module.sig_enforce=1/module.sig_enforce=0/g')
fi

# Disable loadpin.
if grep -q "loadpin.enabled" /proc/cmdline; then
Expand Down

0 comments on commit 5e39ee4

Please sign in to comment.