Commit 5ed08f5
[sonic-package-manager] insert newline in /etc/sonic/generated_services.conf (#3040)
This issue is seen during upgrade from older branches to 202305 with PR
sonic-net/sonic-utilities#3037.
When sonic-package-manager installs an extension it re-generates
/etc/sonic/generated_services.conf. The file does not contain newline at
the end.
If packages are installed at runtime everything is ok, but when they are
installed at build time, /etc/sonic/generated_services.conf gets later
appended with new services:
```
echo "{{service}}" | sudo tee -a $GENERATED_SERVICE_FILE
```
This pattern is used multiple times in sonic_debian_extension.j2 script,
thus fixing it in sonic-utilities.
Signed-off-by: Stepan Blyschak <[email protected]>1 parent 5f1270a commit 5ed08f5
File tree
2 files changed
+5
-1
lines changed- sonic_package_manager/service_creator
- tests/sonic_package_manager
2 files changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
352 | 352 | | |
353 | 353 | | |
354 | 354 | | |
| 355 | + | |
355 | 356 | | |
356 | 357 | | |
357 | 358 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
116 | | - | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
117 | 120 | | |
118 | 121 | | |
119 | 122 | | |
| |||
0 commit comments