Commit | Line | Data |
---|---|---|
72a91d74 MB |
1 | This exposes information about disk sizes to OS install scripts. instance-guix |
2 | uses this if available to determine the size of the VM image. | |
3 | ||
4 | Submitted upstream: | |
5 | https://github.com/ganeti/ganeti/pull/1503 | |
6 | ||
7 | diff --git a/lib/backend.py b/lib/backend.py | |
8 | --- a/lib/backend.py | |
9 | +++ b/lib/backend.py | |
10 | @@ -4305,6 +4305,7 @@ def OSEnvironment(instance, inst_os, debug=0): | |
11 | uri = _CalculateDeviceURI(instance, disk, real_disk) | |
12 | result["DISK_%d_ACCESS" % idx] = disk.mode | |
13 | result["DISK_%d_UUID" % idx] = disk.uuid | |
14 | + result["DISK_%d_SIZE" % idx] = str(disk.size) | |
15 | if real_disk.dev_path: | |
16 | result["DISK_%d_PATH" % idx] = real_disk.dev_path | |
17 | if uri: |