diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2019-07-02 16:12:45 +1200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-07-03 17:00:57 +0100 |
commit | d3a9f43305f28ef229fc621ff1273c69a435dec5 (patch) | |
tree | a60f11388f89ef2074ecf5db8894d4761df52764 /scripts/lib/recipetool/create_buildsys_python.py | |
parent | 8ff741d0752cae18a0d0921f32011810c67eee81 (diff) | |
download | poky-d3a9f43305f28ef229fc621ff1273c69a435dec5.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.
(From OE-Core rev: 49043de1a7716ad612fb92a2e8a52e43d253c800)
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/recipetool/create_buildsys_python.py')
0 files changed, 0 insertions, 0 deletions