diff options
author | Samuel Mendoza-Jonas <sam@mendozajonas.com> | 2018-05-30 15:36:45 +1000 |
---|---|---|
committer | Samuel Mendoza-Jonas <sam@mendozajonas.com> | 2018-06-12 13:03:55 +1000 |
commit | e54e26065cea435fed19b8b2687c87927f1b63f1 (patch) | |
tree | 9e3fb8f89aeac264cdab38910ce3c963a03401c1 /lib | |
parent | 917f7aa880a7c6ab08991ae0c969d0489ba48845 (diff) | |
download | talos-petitboot-e54e26065cea435fed19b8b2687c87927f1b63f1.tar.gz talos-petitboot-e54e26065cea435fed19b8b2687c87927f1b63f1.zip |
discover: Rescan SCSI devices on reinit
Explicitly rescan SCSI devices on reinit rather than just remounting
them in case a device did not init properly on boot.
Signed-off-by: Samuel Mendoza-Jonas <sam@mendozajonas.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/system/system.c | 1 | ||||
-rw-r--r-- | lib/system/system.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/lib/system/system.c b/lib/system/system.c index b1121a1..6dafcb0 100644 --- a/lib/system/system.c +++ b/lib/system/system.c @@ -33,6 +33,7 @@ const struct pb_system_apps pb_system_apps = { .pb_plugin = HOST_PROG_PB_PLUGIN, .pb_exec = HOST_PROG_PB_EXEC, .sh = HOST_PROG_SH, + .scsi_rescan = HOST_PROG_SCSI_RESCAN, }; #ifndef TFTP_TYPE diff --git a/lib/system/system.h b/lib/system/system.h index d27c2cd..38fe392 100644 --- a/lib/system/system.h +++ b/lib/system/system.h @@ -18,6 +18,7 @@ struct pb_system_apps { const char *pb_plugin; const char *pb_exec; const char *sh; + const char *scsi_rescan; }; extern const struct pb_system_apps pb_system_apps; |