Skip to content

Commit fe2f3ee

Browse files
committed
Install to /usr/bin instead of /tmp
1 parent 127b86e commit fe2f3ee

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

scripts/install-sysbox-complete.sh

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,11 @@ check_existing() {
7171
copy_binaries() {
7272
log_info "Copying Sysbox binaries to host..."
7373

74-
cp /usr/local/bin/rsync /host/tmp/rsync-static
75-
cp /usr/local/bin/sysbox-* /host/tmp/
76-
chmod +x /host/tmp/rsync-static /host/tmp/sysbox-*
74+
cp /usr/local/bin/rsync /host/usr/bin/
75+
cp /usr/local/bin/sysbox-* /host/usr/bin/
76+
chmod +x /host/usr/bin/rsync /host/usr/bin/sysbox-*
7777

7878
# Create symlinks for dependencies
79-
hostrun ln -sf /tmp/rsync-static /usr/bin/rsync 2>/dev/null || true
8079
hostrun ln -sf /usr/sbin/modprobe /usr/bin/modprobe 2>/dev/null || true
8180
hostrun ln -sf /usr/sbin/iptables /usr/bin/iptables 2>/dev/null || true
8281

@@ -139,7 +138,7 @@ configure_docker() {
139138
},
140139
"runtimes": {
141140
"sysbox-runc": {
142-
"path": "/tmp/sysbox-runc"
141+
"path": "/usr/bin/sysbox-runc"
143142
}
144143
}
145144
}

0 commit comments

Comments
 (0)