qubes-issues icon indicating copy to clipboard operation
qubes-issues copied to clipboard

Using qubesctl to update dom0 appears to output some literal code

Open andrewdavidwong opened this issue 3 years ago • 2 comments

How to file a helpful issue

Qubes OS release

Qubes 4.1.1

Brief summary

I think attempting to update dom0 is outputting some literal code instead of running the code.

Steps to reproduce

In dom0, run:

sudo qubesctl --show-output state.sls update.qubes-dom0 2>&1

Expected behavior

Normal output; no literal code.

Actual behavior

This is in the output:

Name: if qubes-dom0-update --quiet --assumeyes --clean --action=clean expire-cache >/dev/null 2>&1; then
    echo "result=True comment='Cache cleaned'"
else
    echo "result=False comment='Could not clean cache'"
fi

I'm guessing that I, as the user, am only supposed to see either 'Cache cleaned' or 'Could not clean cache'.

andrewdavidwong avatar Jul 22 '22 02:07 andrewdavidwong

On second look, these are the next lines of the output:

    ESC[0;32m  Result: TrueESC[0;0m
    ESC[0;32m Comment: Cache cleanedESC[0;0m

So I guess it's working correctly and this is just an extremely verbose "name" that should probably be something more user-facing.

andrewdavidwong avatar Jul 22 '22 02:07 andrewdavidwong

You guessed correctly @andrewdavidwong. I will fix this.

DemiMarie avatar Jul 22 '22 02:07 DemiMarie

Automated announcement from builder-github

The component mgmt-salt-dom0-update (including package qubes-mgmt-salt-dom0-update-4.1.12-1.fc32) has been pushed to the r4.1 testing repository for dom0. To test this update, please install it with the following command:

sudo qubes-dom0-update --enablerepo=qubes-dom0-current-testing

Changes included in this update

qubesos-bot avatar Feb 16 '24 13:02 qubesos-bot

Automated announcement from builder-github

The component mgmt-salt-dom0-update (including package qubes-mgmt-salt-dom0-update-4.1.14-1.fc32) has been pushed to the r4.1 stable repository for dom0. To install this update, please use the standard update command:

sudo qubes-dom0-update

Or update dom0 via Qubes Manager.

Changes included in this update

qubesos-bot avatar Mar 16 '24 01:03 qubesos-bot