Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
e2ecb672
Commit
e2ecb672
authored
May 02, 2019
by
galal-hussein
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use host's mount binary before packaged mount
parent
068c7dfb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
main.go
cmd/k3s/main.go
+1
-1
download
scripts/download
+1
-0
No files found.
cmd/k3s/main.go
View file @
e2ecb672
...
@@ -84,7 +84,7 @@ func stageAndRun(dataDir string, cmd string, args []string) error {
...
@@ -84,7 +84,7 @@ func stageAndRun(dataDir string, cmd string, args []string) error {
return
errors
.
Wrap
(
err
,
"extracting data"
)
return
errors
.
Wrap
(
err
,
"extracting data"
)
}
}
if
err
:=
os
.
Setenv
(
"PATH"
,
filepath
.
Join
(
dir
,
"bin"
)
+
":"
+
os
.
Getenv
(
"PATH"
));
err
!=
nil
{
if
err
:=
os
.
Setenv
(
"PATH"
,
filepath
.
Join
(
dir
,
"bin"
)
+
":"
+
os
.
Getenv
(
"PATH"
)
+
":"
+
filepath
.
Join
(
dir
,
"bin/aux"
)
);
err
!=
nil
{
return
err
return
err
}
}
...
...
scripts/download
View file @
e2ecb672
...
@@ -12,6 +12,7 @@ mkdir -p ${CHARTS_DIR}
...
@@ -12,6 +12,7 @@ mkdir -p ${CHARTS_DIR}
curl
--compressed
-sfL
https://github.com/ibuildthecloud/k3s-root/releases/download/
${
ROOT_VERSION
}
/k3s-root-
${
ARCH
}
.tar |
tar
xf -
curl
--compressed
-sfL
https://github.com/ibuildthecloud/k3s-root/releases/download/
${
ROOT_VERSION
}
/k3s-root-
${
ARCH
}
.tar |
tar
xf -
ln
-sf
pigz bin/unpigz
ln
-sf
pigz bin/unpigz
mkdir
-p
bin/aux
&&
rm
bin/mount
&&
ln
-sf
../busybox bin/aux/mount
TRAEFIK_FILE
=
traefik-
${
TRAEFIK_VERSION
}
.tgz
TRAEFIK_FILE
=
traefik-
${
TRAEFIK_VERSION
}
.tgz
curl
-sfL
https://kubernetes-charts.storage.googleapis.com/
${
TRAEFIK_FILE
}
-o
${
CHARTS_DIR
}
/
${
TRAEFIK_FILE
}
curl
-sfL
https://kubernetes-charts.storage.googleapis.com/
${
TRAEFIK_FILE
}
-o
${
CHARTS_DIR
}
/
${
TRAEFIK_FILE
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment