summaryrefslogtreecommitdiffstats
path: root/scripts/oe-buildenv-internal
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2019-07-02 16:12:45 +1200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-07-03 09:09:49 +0100
commit49043de1a7716ad612fb92a2e8a52e43d253c800 (patch)
tree6fa0907607ef6b7db8ce5e44005b38c0f108ab21 /scripts/oe-buildenv-internal
parentadf632c959e7f6595b697726fe64ddda40b9f249 (diff)
downloadopenembedded-core-contrib-49043de1a7716ad612fb92a2e8a52e43d253c800.tar.gz
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. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/oe-buildenv-internal')
0 files changed, 0 insertions, 0 deletions