mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-08-24 07:26:29 +00:00
Add a word, to make error message about nbd more understable
This commit is contained in:
parent
e41dbdd807
commit
9e61ac94d2
1 changed files with 2 additions and 1 deletions
|
@ -23,7 +23,8 @@ class QEMUVolume(LoopbackVolume):
|
|||
num_partitions = len(self.partition_map.partitions)
|
||||
if not self._module_loaded('nbd'):
|
||||
msg = ('The kernel module `nbd\' must be loaded '
|
||||
'(`modprobe nbd max_part={num_partitions}\') to attach .{extension} images'
|
||||
'(run `modprobe nbd max_part={num_partitions}\') '
|
||||
'to attach .{extension} images'
|
||||
.format(num_partitions=num_partitions, extension=self.extension))
|
||||
raise VolumeError(msg)
|
||||
nbd_max_part = int(self._module_param('nbd', 'max_part'))
|
||||
|
|
Loading…
Add table
Reference in a new issue