mirror of
https://github.com/scylladb/scylladb.git
synced 2026-05-23 00:02:37 +00:00
scylla_setup: don't repeatedly select disks if it's assigned
Currently scylla_setup would be stuck to select disks in non-interaction mode. Fixes #4370 Signed-off-by: Amos Kong <amos@scylladb.com> Message-Id: <8fb445708a6ac0d2130f8a8d041b1d8d71f1cf14.1553745961.git.amos@scylladb.com>
This commit is contained in:
2
dist/common/scripts/scylla_setup
vendored
2
dist/common/scripts/scylla_setup
vendored
@@ -311,7 +311,7 @@ if __name__ == '__main__':
|
||||
raid_setup = interactive_ask_service('Are you sure you want to setup RAID0 and XFS?', 'If you choose Yes, the selected drive will be reformated, erasing all existing data in the process.', raid_setup)
|
||||
else:
|
||||
raid_setup = False
|
||||
if res and raid_setup:
|
||||
if res and raid_setup and not disks:
|
||||
devices = get_unused_disks()
|
||||
if len(devices) == 0:
|
||||
print('No free disks were detected, abort RAID/XFS setup. Disks must be unmounted before proceeding.\n')
|
||||
|
||||
Reference in New Issue
Block a user