Repository navigation
Commit d8ba49d
committed
fix(system): read df's available column from the end in do-update-lxc.sh
Same fix as in perform_update.sh: df puts a device name that does not fit on a
line of its own, and $4 of line 2 is then part of the name instead of the free
space. An LXC update would have refused to run with "Not enough free space" on
a filesystem with plenty of it.
The remaining df readers are fine: init.sh and resources.sh ask for a single
column with --output=, which cannot wrap.
Signed-off-by: Simon Walz <contact@simonwalz.de>1 parent 891a0bb commit d8ba49d
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
34 | 36 | | |
35 | 37 | | |
36 | 38 | | |
| |||
0 commit comments