Skip to content

Instantly share code, notes, and snippets.

@ancorgs
Last active March 3, 2020 15:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ancorgs/d2565bf505834329946a998500a326c8 to your computer and use it in GitHub Desktop.
Save ancorgs/d2565bf505834329946a998500a326c8 to your computer and use it in GitHub Desktop.
Installing packages during yast2-storage-ng probing: usability

The original problem

If YaST is used to partition/format/encrypt/whatever some storage devices but the system lacks some of the tools needed to perform the operations, YaST has always shown a dialog alerting about the situation and allowing to install the missing packages. It looks like this:

Commit pop-up

But the presence of those tools was only checked at the end of the process, when YaST needed them to create/format/encrypt new devices (in the screenshot above, YaST asked for cryptsetup because it wanted to encrypt a new partition).

If the needed tool was already missing during the initial phase in which the storage devices are analyzed, the user had no chance to install the corresponding package. The user got the following warning.

Old probing warning

Clicking in "details" would show which command exactly failed.

Details of old probing warning

And clicking in "continue" will, indeed, allow to continue using YaST. But the representation of the system would be incomplete (in our example, the encrypted partition would look empty and non-encrypted).

The implemented solution

During the previous sprint, an improvement was implemented and commited to SLE-15-SP2 and Factory. The dialog to install packages before commiting the changes to the system (first screenshot) has not changed. But when a package is missing for the analysis phase, we added the possibility of installing the package right away. The dialog looks like this:

New probing warning

Clicking on "details" shows the following information.

Details of new probing warning

The new problem

Although the new dialog indeed allows to user to install the packages, the YaST Team agreed on the review meeting that we need to improve the usability.

  • It contains a significant amount of text for a pop-up
  • It uses relatively technical terms like "probing" which may not be obvious for a final user
  • It offers four buttons, with implications that may not be obvious from the labels
  • It only shows the name of the packages to install when clicking in "details"

We would like to have something that is almost as simple and intuitive as the dialog using during the commit phase (first screenshot).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment