diff options
author | PMR <pmr@pmr-lander> | 2021-06-30 15:56:35 +0000 |
---|---|---|
committer | PMR <pmr@pmr-lander> | 2021-06-30 15:56:35 +0000 |
commit | e24158af0b4b66cde3dd3d7f2c5f198f0b8b4ebe (patch) | |
tree | fb72199fc1701394aa710499e3ff206d7e0dc6cc /units/info | |
parent | 529c39ee0a1d7daa2ae578722ccefbe2279ee388 (diff) |
Import plainbox-provider-checkbox_0.59.0~rc1.orig.tar.gzupstream-0.59.0_rc1patched-0.59.0_rc1-1
Diffstat (limited to 'units/info')
-rw-r--r-- | units/info/jobs.pxu | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/units/info/jobs.pxu b/units/info/jobs.pxu index 40d31af..d2ed96b 100644 --- a/units/info/jobs.pxu +++ b/units/info/jobs.pxu @@ -75,6 +75,10 @@ id: lspci_attachment plugin: attachment category_id: com.canonical.plainbox::info command: + if [[ ! -d "/proc/bus/pci" ]]; then + echo "No PCI bus found" + exit 0 + fi if [[ -v SNAP ]]; then lspci -i "$SNAP"/usr/share/misc/pci.ids -vvnn else @@ -358,6 +362,8 @@ command: cat /writable/system-data/etc/buildstamp elif [ -e /var/lib/snapd/seed/seed.yaml ]; then echo && date -r /var/lib/snapd/seed/seed.yaml -R + else + exit 1 fi {% else -%} if [ -s /.disk/info ]; then # Ubuntu Classic @@ -486,6 +492,7 @@ command: cat "$SNAP"/parts_meta_info || true # should always have parts info from content snap cat "$CHECKBOX_RUNTIME"/parts_meta_info -environ: SNAP +environ: SNAP CHECKBOX_RUNTIME +user: root estimated_duration: 0.02 _summary: Attaches an information about all parts that constituted this snap |