Commit 50bd343
authored
Update cexec (#157)
## Description
Upgrade to Go 1.24. Use structured logging. Unmount disk device after use.
Bind mount existing sources into chroot. Instead of creating new mounts from special filesystems for the chroot, we bind mount the existing locations for /dev, /sys, and/proc.
Creating a new mount point using devtmpfs is not recommended as it can cause issues and conflicts with /dev. Especially when we created the devtmpfs mount point as read only. This caused the host system's /dev to change to read only as well.
## Why is this needed
Fixes: #
## How Has This Been Tested?
## How are existing users impacted? What migration steps/scripts do we need?
## Checklist:
I have:
- [ ] updated the documentation and/or roadmap (if required)
- [ ] added unit or e2e tests
- [ ] provided instructions on how to upgrade1 file changed
+6
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
225 | 225 | | |
226 | 226 | | |
227 | 227 | | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
228 | 231 | | |
229 | 232 | | |
230 | | - | |
| 233 | + | |
231 | 234 | | |
232 | 235 | | |
233 | 236 | | |
234 | 237 | | |
235 | 238 | | |
236 | | - | |
| 239 | + | |
237 | 240 | | |
238 | 241 | | |
239 | 242 | | |
240 | 243 | | |
241 | 244 | | |
242 | | - | |
| 245 | + | |
243 | 246 | | |
244 | 247 | | |
245 | 248 | | |
| |||
0 commit comments