Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(ujust): dx detection on nvidia/surface/others #1968

Merged
merged 1 commit into from
Nov 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion just/bluefin-apps.just
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ install-incus:
#!/usr/bin/env bash
source /usr/lib/ujust/ujust.sh
CURRENT_IMAGE=$(rpm-ostree status -b --json | jq -r '.deployments[0]."container-image-reference"')
if ! grep -e "-dx:" <<< $CURRENT_IMAGE ; then
if ! grep -e "-dx" <<< $CURRENT_IMAGE ; then
echo "Developer mode is currently ${b}${red}Disabled${n}."
echo "Run \"just devmode\" to turn on Developer mode."
exit
Expand Down
4 changes: 2 additions & 2 deletions just/bluefin-system.just
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ toggle-devmode:
EOF
exit
fi
if /bin/grep -q "\-dx:" <<< $CURRENT_IMAGE ; then
if /bin/grep -q "\-dx" <<< $CURRENT_IMAGE ; then
CURRENT_STATE="enabled"
else
CURRENT_STATE="disabled"
Expand Down Expand Up @@ -68,7 +68,7 @@ toggle-devmode:
fi
echo "Rebasing to a non developer image"
# Remove -dx suffix from image, specifies ":" to mark the end of the image name
NEW_IMAGE=$(sed "s/\-dx:/:/" <<< $CURRENT_IMAGE)
NEW_IMAGE=$(sed "s/\-dx//" <<< $CURRENT_IMAGE)
rpm-ostree rebase $NEW_IMAGE
fi

Expand Down