Bionic:

$ sudo /usr/bin/rescan-scsi-bus.sh -i
Scanning SCSI subsystem for new devices
Scanning host 0 for  SCSI target IDs  0 1 2 3 4 5 6 7, all LUNs
Scanning host 1 for  SCSI target IDs  0 1 2 3 4 5 6 7, all LUNs
Scanning host 2 for  SCSI target IDs  0 1 2 3 4 5 6 7, all LUNs
Scanning host 3 for  SCSI target IDs  0 1 2 3 4 5 6 7, all LUNs
Scanning host 4 for  SCSI target IDs  0 1 2 3 4 5 6 7, all LUNs
Scanning host 5 for  SCSI target IDs  0 1 2 3 4 5 6 7, all LUNs
0 new or changed device(s) found.          
0 remapped or resized device(s) found.
0 device(s) removed.

Hirsute:
$ sudo /usr/bin/rescan-scsi-bus.sh -i
Scanning SCSI subsystem for new devices
Scanning host 0 for  SCSI target IDs 0
1
2
3
4
5
6
7, all LUNs
Scanning host 1 for  SCSI target IDs 0
1
2
3
4
5
6
7, all LUNs
Scanning host 2 for  SCSI target IDs 0
1
2
3
4
5
6
7, all LUNs
Scanning host 3 for  SCSI target IDs 0
1
2
3
4
5
6
7, all LUNs
Scanning host 4 for  SCSI target IDs 0
1
2
3
4
5
6
7, all LUNs
Scanning host 5 for  SCSI target IDs 0
1
2
3
4
5
6
7, all LUNs
0 new or changed device(s) found.          
0 remapped or resized device(s) found.
0 device(s) removed.


So it isn't failing all the time.
I assume your environment is different in a way that some variable becomes "" 
and then the check fails.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1913729

Title:
  /usr/bin/rescan-scsi-bus.sh: line 245: test: -le: unary operator
  expected

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/sg3-utils/+bug/1913729/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to