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
0c75f26a
Commit
0c75f26a
authored
Mar 30, 2015
by
Victor Marmol
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #6148 from zmerlynn/brctl_complaint
Fix "brctl: invalid command" message appearing in startup logs
parents
58bc479e
b3636bba
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
configure-vm.sh
cluster/gce/configure-vm.sh
+12
-0
No files found.
cluster/gce/configure-vm.sh
View file @
0c75f26a
...
@@ -83,10 +83,18 @@ for k,v in yaml.load(sys.stdin).iteritems():
...
@@ -83,10 +83,18 @@ for k,v in yaml.load(sys.stdin).iteritems():
}
}
function
remove-docker-artifacts
()
{
function
remove-docker-artifacts
()
{
echo
"== Deleting docker0 =="
# Forcibly install bridge-utils (options borrowed from Salt logs).
until
apt-get
-q
-y
-o
DPkg::Options::
=
--force-confold
-o
DPkg::Options::
=
--force-confdef
install
bridge-utils
;
do
echo
"== install of bridge-utils failed, retrying =="
sleep
5
done
# Remove docker artifacts on minion nodes, if present
# Remove docker artifacts on minion nodes, if present
iptables
-t
nat
-F
||
true
iptables
-t
nat
-F
||
true
ifconfig docker0 down
||
true
ifconfig docker0 down
||
true
brctl delbr docker0
||
true
brctl delbr docker0
||
true
echo
"== Finished deleting docker0 =="
}
}
# Retry a download until we get it.
# Retry a download until we get it.
...
@@ -152,6 +160,9 @@ EOF
...
@@ -152,6 +160,9 @@ EOF
done
done
rm
/usr/sbin/policy-rc.d
rm
/usr/sbin/policy-rc.d
# Log a timestamp
echo
"== Finished installing Salt =="
}
}
# Ensure salt-minion never runs
# Ensure salt-minion never runs
...
@@ -352,6 +363,7 @@ function configure-salt() {
...
@@ -352,6 +363,7 @@ function configure-salt() {
}
}
function
run-salt
()
{
function
run-salt
()
{
echo
"== Calling Salt =="
salt-call
--local
state.highstate
||
true
salt-call
--local
state.highstate
||
true
}
}
...
...
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