Commit ccbf620
authored
* Fix LVM snapshot and disk space logic (closes #1986)
- Ask about snapshots first before disk space question
- Reserve 10G for snapshots, then extend with remaining free space
- This prevents the bug where extending to 100%FREE consumed space needed for snapshots
- Provisioning mode still always extends as before
- Fix whiptail installation to run apt-get update first
* Export and unset SNAPSHOTS_ENABLED and USE_ALL_DISK_SPACE variables
- Export variables when set to make them available to child processes
- Unset them after use to clean up the environment
- Fixes shellcheck SC2034 warning
1 parent 226c6f7 commit ccbf620
1 file changed
+20
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
| |||
99 | 100 | | |
100 | 101 | | |
101 | 102 | | |
| 103 | + | |
| 104 | + | |
102 | 105 | | |
103 | 106 | | |
104 | 107 | | |
| |||
113 | 116 | | |
114 | 117 | | |
115 | 118 | | |
116 | | - | |
| 119 | + | |
| 120 | + | |
117 | 121 | | |
118 | 122 | | |
119 | 123 | | |
| |||
122 | 126 | | |
123 | 127 | | |
124 | 128 | | |
| 129 | + | |
| 130 | + | |
125 | 131 | | |
126 | 132 | | |
| 133 | + | |
| 134 | + | |
127 | 135 | | |
128 | 136 | | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
129 | 144 | | |
130 | 145 | | |
131 | 146 | | |
| |||
150 | 165 | | |
151 | 166 | | |
152 | 167 | | |
153 | | - | |
154 | 168 | | |
155 | 169 | | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
156 | 174 | | |
157 | 175 | | |
158 | 176 | | |
| |||
0 commit comments