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
f2fa2f6d
Commit
f2fa2f6d
authored
Mar 02, 2017
by
shashidharatd
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
New packages added to hack/.linted_packages
parent
a14f8dc3
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
mounter.go
cluster/gce/gci/mounter/mounter.go
+2
-2
.linted_packages
hack/.linted_packages
+2
-0
No files found.
cluster/gce/gci/mounter/mounter.go
View file @
f2fa2f6d
...
...
@@ -63,7 +63,7 @@ func main() {
// MountInChroot is to run mount within chroot with the passing root directory
func
mountInChroot
(
rootfsPath
string
,
args
[]
string
)
error
{
if
_
,
err
:=
os
.
Stat
(
rootfsPath
);
os
.
IsNotExist
(
err
)
{
return
fmt
.
Errorf
(
"
Path <%s> does not exist.
\n
"
,
rootfsPath
)
return
fmt
.
Errorf
(
"
path <%s> does not exist
"
,
rootfsPath
)
}
args
=
append
([]
string
{
rootfsPath
,
mountCmd
},
args
...
)
output
,
err
:=
exec
.
Command
(
chrootCmd
,
args
...
)
.
CombinedOutput
()
...
...
@@ -73,7 +73,7 @@ func mountInChroot(rootfsPath string, args []string) error {
if
!
strings
.
EqualFold
(
string
(
output
),
nfsRPCBindErrMsg
)
{
// Mount failed but not because of RPC bind error
return
fmt
.
Errorf
(
"
Mount failed: %v
\n
Mounting command: %s
\n
Mounting arguments: %v
\n
Output: %s
\n
"
,
err
,
chrootCmd
,
args
,
string
(
output
))
return
fmt
.
Errorf
(
"
mount failed: %v
\n
Mounting command: %s
\n
Mounting arguments: %v
\n
Output: %s
"
,
err
,
chrootCmd
,
args
,
string
(
output
))
}
// Mount failed because it is NFS V3 and we need to run rpcBind
...
...
hack/.linted_packages
View file @
f2fa2f6d
cluster/addons/fluentd-elasticsearch/es-image
cluster/gce/gci/mounter
cluster/images/etcd/attachlease
cluster/images/etcd/rollback
cmd/clicheck
...
...
@@ -385,6 +386,7 @@ staging/src/k8s.io/kube-aggregator/pkg/client/listers/apiregistration/v1alpha1
staging/src/k8s.io/sample-apiserver
staging/src/k8s.io/sample-apiserver/pkg/apis/wardle/install
test/e2e/perftype
test/e2e_federation/upgrades
test/e2e_node/runner/local
test/images/clusterapi-tester
test/images/entrypoint-tester
...
...
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