Allow sosreport to be run separately
Bug #1817816 reported by
Pierre Equoy
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bugit |
Fix Released
|
High
|
Unassigned |
Bug Description
qabro embeds sosreport, but sosreport cannot be run easily from the command line.
qabro launches it from python using a command such as:
sudo env SNAP=$SNAP PATH=$PATH sosreport --no-report --batch --tmp-dir <directory> -z gzip
which is very convoluted.
It would be better, if possible, to setup the snap so that running sosreport would work out of the box (by calling `qabro.sosreport`).
Changed in qabro: | |
milestone: | none → 0.9 |
assignee: | nobody → Pierre Equoy (pieq) |
importance: | Undecided → High |
Changed in qabro: | |
status: | Fix Committed → Fix Released |
assignee: | Pierre Equoy (pieq) → nobody |
To post a comment you must log in.
I modified the command in the snap, so that running:
$ sudo qabro.sosreport
will start sosreport with the following options:
--no-report --batch --tmp-dir $SNAP_USER_COMMON -z gzip
Which means the sosreport will gather data automatically, will generate a .tar.gz archive and will put it in `~/snap/ qabro/common/ `
Please note:
- You must launch this using `sudo`. sosreport. tar.gz> `
- The generated sosreport archive is owned by `root`, so you will need to run `sudo chown <user>:<user> <path/to/