mirror of
https://github.com/optim-enterprises-bv/secureblue.git
synced 2025-11-03 11:58:26 +00:00
chore: remove unusable toggle-nvk just command
This commit is contained in:
15
files/scripts/remove-unusable-just-command.patch
Normal file
15
files/scripts/remove-unusable-just-command.patch
Normal file
@@ -0,0 +1,15 @@
|
||||
61,74d60
|
||||
< # Switch between Nvidia image and NVK
|
||||
< toggle-nvk:
|
||||
< #!/usr/bin/bash
|
||||
< CURRENT_IMAGE=$(rpm-ostree status -b --json | jq -r '.deployments[0]."container-image-reference"' | sed -E 's/^.+\/(.+:.+)$/\1/')
|
||||
< CURRENT_URI=$(rpm-ostree status -b --json | jq -r '.deployments[0]."container-image-reference"' | sed -E 's/^(.+\/).+:.+$/\1/')
|
||||
< NEW_IMAGE=$CURRENT_IMAGE
|
||||
< if [[ "$CURRENT_IMAGE" =~ "nvidia" ]]; then
|
||||
< NEW_IMAGE=${CURRENT_IMAGE/-nvidia/}
|
||||
< else
|
||||
< NEW_IMAGE=${CURRENT_IMAGE/:/-nvidia:}
|
||||
< fi
|
||||
< echo "Rebasing to ${NEW_IMAGE}"
|
||||
< rpm-ostree rebase ${CURRENT_URI}${NEW_IMAGE}
|
||||
<
|
||||
Reference in New Issue
Block a user