Rewrite mock_cleanup.sh to use the '--umount' and '--orphanskill' options to mock

Description

The mock_cleanup.sh script currently includes some complex shell commands used with sudo in an attempt to clean up after mock.

This script turns out to be quite buggy and is suspected to cause several issues.

mock has nowdays several useful options that makes it able to do the same kind of work that the commands in mock_cleanup.sh do in probably a more reliable manner.

We should make mock_cleanup.sh use the relevant mock commands.

Assignee

infra

Reporter

Barak Korren

Blocked By

None

Priority

High
Configure