poky/scripts/contrib
Paul Eggleton d3a9f43305 scripts/contrib/ddimage: replace blacklist with mount check
The blacklist, whilst previously useful for safety, is now becoming
obsolete - on my current system, the main storage is at /dev/nvme* and
if I plug in a USB stick it shows up as /dev/sdb which was previously
blacklisted. To make this more flexible, remove the blacklist and
instead check if the specified device is mounted, has a partition
that is mounted, or is otherwise in use according to the kernel, and
show an appropriate error and quit if so.

To make this robust, also ensure we handle where the specified device is
a symlink to another device.

(From OE-Core rev: 49043de1a7716ad612fb92a2e8a52e43d253c800)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-07-03 17:00:57 +01:00
..
bb-perf meta/lib+scripts: Convert to SPDX license headers 2019-05-09 16:31:55 +01:00
bbvars.py meta/lib+scripts: Convert to SPDX license headers 2019-05-09 16:31:55 +01:00
build-perf-test-wrapper.sh meta/lib+scripts: Convert to SPDX license headers 2019-05-09 16:31:55 +01:00
ddimage scripts/contrib/ddimage: replace blacklist with mount check 2019-07-03 17:00:57 +01:00
devtool-stress.py meta/lib+scripts: Convert to SPDX license headers 2019-05-09 16:31:55 +01:00
dialog-power-control meta/lib+scripts: Convert to SPDX license headers 2019-05-09 16:31:55 +01:00
documentation-audit.sh meta/lib+scripts: Convert to SPDX license headers 2019-05-09 16:31:55 +01:00
graph-tool meta/lib+scripts: Convert to SPDX license headers 2019-05-09 16:31:55 +01:00
list-packageconfig-flags.py meta/lib+scripts: Convert to SPDX license headers 2019-05-09 16:31:55 +01:00
oe-build-perf-report-email.py meta/lib+scripts: Convert to SPDX license headers 2019-05-09 16:31:55 +01:00
patchreview.py meta/lib+scripts: Convert to SPDX license headers 2019-05-09 16:31:55 +01:00
patchtest.sh meta/lib+scripts: Convert to SPDX license headers 2019-05-09 16:31:55 +01:00
serdevtry meta/lib+scripts: Convert to SPDX license headers 2019-05-09 16:31:55 +01:00
test_build_time_worker.sh meta/lib+scripts: Convert to SPDX license headers 2019-05-09 16:31:55 +01:00
test_build_time.sh meta/lib+scripts: Convert to SPDX license headers 2019-05-09 16:31:55 +01:00
uncovered meta/lib+scripts: Convert to SPDX license headers 2019-05-09 16:31:55 +01:00
verify-homepage.py meta/lib+scripts: Convert to SPDX license headers 2019-05-09 16:31:55 +01:00