summaryrefslogtreecommitdiffstats
path: root/mdk-stage1
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2020-06-13 01:03:55 +0200
committerThierry Vignaud <thierry.vignaud@gmail.com>2020-06-13 01:03:55 +0200
commit65589f334589df0cf161300dae18a822e425cf3a (patch)
tree1d2197e559cc86c65e15190ee5d4a8c481c412f5 /mdk-stage1
parent853f4b900c7d2665676f0c52d00e111e41972c4c (diff)
downloaddrakx-65589f334589df0cf161300dae18a822e425cf3a.tar
drakx-65589f334589df0cf161300dae18a822e425cf3a.tar.gz
drakx-65589f334589df0cf161300dae18a822e425cf3a.tar.bz2
drakx-65589f334589df0cf161300dae18a822e425cf3a.tar.xz
drakx-65589f334589df0cf161300dae18a822e425cf3a.zip
explain /capability check
Diffstat (limited to 'mdk-stage1')
-rw-r--r--mdk-stage1/probing.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/mdk-stage1/probing.c b/mdk-stage1/probing.c
index 32045ec69..1add7fd64 100644
--- a/mdk-stage1/probing.c
+++ b/mdk-stage1/probing.c
@@ -670,6 +670,7 @@ void find_media(enum media_bus bus)
read_attribute(path, buf);
long caps = strtol(buf, NULL, 16);
+ // GENHD_FL_UP (0x0010): indicates that the block device is “up”, with a similar meaning to network interface
if (caps && !(caps & 0x0010)) {
log_message("Ignoring device %s (not up)", name);
free(name);