Skip to content

Commit

Permalink
cmd-init: use sudo when creating src/config.json
Browse files Browse the repository at this point in the history
When following the steps for building SCOS I ran
`cosa init --variant scos https://github.com/openshift/os.git`
and got a failure. Let's run this with `sudo`.
  • Loading branch information
dustymabe committed Jun 12, 2023
1 parent a2e5edb commit dd8dc47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cmd-init
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ if [[ -n "${VARIANT}" ]] && [[ "${VARIANT}" != "default" ]]; then
fatal "Could not find the manifests (${manifest} & ${image}) for the '${VARIANT}' variant"
fi
echo "Using variant: '${VARIANT}'"
cat > "src/config.json" <<EOF
sudo tee "src/config.json" <<EOF
{
"coreos-assembler.config-variant": "${VARIANT}"
}
Expand Down

0 comments on commit dd8dc47

Please sign in to comment.