Skip to content

Commit

Permalink
Bug: fix the aa-kbc-params error in fedora
Browse files Browse the repository at this point in the history
Fixes: confidential-containers#1852

Signed-off-by: Qi Feng Huo <huoqif@cn.ibm.com>
  • Loading branch information
Qi Feng Huo committed Jun 6, 2024
1 parent b04ccd0 commit 479a508
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/cloud-api-adaptor/cmd/process-user-data/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const (
providerAzure = "azure"
providerAws = "aws"

defaultAgentConfigPath = "/etc/agent-config.toml"
defaultAgentConfigPath = "/run/peerpod/agent-config.toml"
defaultAuthJsonPath = "/run/peerpod/auth.json"
)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[Unit]
Description=Kata Agent
BindsTo=netns@podns.service
Wants=process-user-data.service
After=netns@podns.service process-user-data.service
Wants=process-user-data-update.service
After=netns@podns.service process-user-data-update.service

[Service]
Environment=CDH_CONFIG_PATH=/run/confidential-containers/cdh.toml
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,14 @@
# It must run before kata-agent.service

[Unit]
Description=Process user data
Description=Process user data and provision
After=network.target
DefaultDependencies=no


[Service]
Type=oneshot
ExecStartPre=/usr/local/bin/process-user-data provision-files
ExecStart=/usr/local/bin/process-user-data update-agent-config
RemainAfterExit=yes

[Install]
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# One-shot systemd service for running the process-user-data binary
# It must run before kata-agent.service

[Unit]
Description=Process user data and update
After=network.target cloud-final.service process-user-data-provision
DefaultDependencies=no


[Service]
Type=oneshot
ExecStart=/usr/local/bin/process-user-data update-agent-config
RemainAfterExit=yes

[Install]
WantedBy=multi-user.target
PartOf=process-user-data-provision.service

0 comments on commit 479a508

Please sign in to comment.