Commit 8c5c3de
authored
Update install_docker.sh for containerd configuration
## Summary
Fixes sed regex in containerd root configuration to use correct single backslash `\?` instead of double backslash `\\?`.
## Problem
The double backslash `\\?` in the sed pattern looks for a literal backslash character, not an optional `#`. This prevents the containerd root configuration from being uncommented and updated.
## Solution
Changed sed pattern from `^#\\?root` to `^#\?root` to correctly match optional `#` character.
## Testing
Verified on live cluster that:
- Double backslash `\\?` fails: `#root = "/var/lib/containerd"` (stays commented)
- Single backslash `\?` works: `root = "/opt/sagemaker/containerd/data-root"` (uncommented and updated)
## Changes
- Line 84: Containerd config for `/opt/sagemaker` with correct sed
- Line 101: Containerd config for `/opt/dlami/nvme` with correct sed
Fixes the issue reported in PR #914.1 parent 03c6318 commit 8c5c3de
File tree
1 file changed
+24
-1
lines changed- 1.architectures/5.sagemaker-hyperpod/LifecycleScripts/base-config/utils
1 file changed
+24
-1
lines changedLines changed: 24 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| 69 | + | |
| 70 | + | |
69 | 71 | | |
70 | 72 | | |
71 | 73 | | |
| |||
76 | 78 | | |
77 | 79 | | |
78 | 80 | | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
79 | 88 | | |
80 | 89 | | |
81 | 90 | | |
| |||
86 | 95 | | |
87 | 96 | | |
88 | 97 | | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
89 | 106 | | |
90 | 107 | | |
91 | 108 | | |
92 | | - | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
0 commit comments