Commit 38d965b
Fix trap to only disable service on success or no-op
- Remove unconditional trap that disabled service on any exit
- Add sv down before each successful no-op exit
- Add sv down after successful completion of growpart/resize2fs
- Ensures service remains enabled if growth operations fail
- Allows automatic retry on reboot when failures occur
Co-authored-by: kristapsk <4500994+kristapsk@users.noreply.github.com>1 parent d6cbfbf commit 38d965b
1 file changed
+9
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | 6 | | |
10 | 7 | | |
11 | 8 | | |
| |||
36 | 33 | | |
37 | 34 | | |
38 | 35 | | |
| 36 | + | |
39 | 37 | | |
40 | 38 | | |
41 | 39 | | |
| |||
86 | 84 | | |
87 | 85 | | |
88 | 86 | | |
| 87 | + | |
89 | 88 | | |
90 | 89 | | |
91 | 90 | | |
92 | 91 | | |
93 | 92 | | |
94 | | - | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
95 | 97 | | |
96 | 98 | | |
97 | 99 | | |
| |||
100 | 102 | | |
101 | 103 | | |
102 | 104 | | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
0 commit comments