Skip to content
Snippets Groups Projects
Commit 7a9e434f authored by Thiago H. S. Picharski's avatar Thiago H. S. Picharski Committed by Josiney de Souza
Browse files

disk.tree: Fixed bug that captures cdrom drive on disk collect data


All drives linked in /dev/cdrom* will be ignored.

Signed-off-by: default avatarThiago H. S. Picharski <thsp08@c3sl.ufpr.br>
Acked-by: default avatarDiego Pasqualin <dgp06@c3sl.ufpr.br>
Acked-by: default avatarVinicius Ruoso <vkr07@c3sl.ufpr.br>
Signed-off-by: default avatarJosiney de Souza <josineys@c3sl.ufpr.br>
parent af197d50
No related branches found
No related tags found
No related merge requests found
......@@ -30,7 +30,8 @@ raid=false
if test -d "/dev/disk/by-id/"; then
for line in $(ls -l --time-style="+%F %R" /dev/disk/by-id/ | grep "usb" |
awk '{print $10}' | grep "[a-z]$"); do
awk '{print $10}' | grep "[a-z]$"; ls -l --time-style="+%F %R"\
/dev/cdrom* | awk '{print $10}' | grep "[a-z]$"); do
test -n "${massStorage}" && massStorage="${massStorage}|"
massStorage="${massStorage}$(basename $line)"
done
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment