Skip to content

Commit

Permalink
[installer] Copy old config files rather than only minigraph (#730)
Browse files Browse the repository at this point in the history
  • Loading branch information
taoyl-ms authored Jun 21, 2017
1 parent dd104e1 commit 95906a6
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 59 deletions.
55 changes: 0 additions & 55 deletions dockers/docker-fpm-quagga/base_image_files/bgp_neighbor

This file was deleted.

7 changes: 5 additions & 2 deletions files/image_config/platform/rc.local
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,11 @@ if [ -f /host/image-$sonic_version/platform/firsttime ]; then
exit 0
fi

# Try to take minigraph saved during installation
if [ -f /host/minigraph.xml ]; then
# Try to take old configuration saved during installation
if [ -d /host/old_config ]; then
rm -f /host/old_config/sonic_version.yml
mv -f /host/old_config/* /etc/sonic/
elif [ -f /host/minigraph.xml ]; then
mv /host/minigraph.xml /etc/sonic/
else
cp /usr/share/sonic/device/$platform/minigraph.xml /etc/sonic/
Expand Down
1 change: 0 additions & 1 deletion rules/docker-fpm-quagga.mk
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,3 @@ $(DOCKER_FPM_QUAGGA)_RUN_OPT += --net=host --privileged -t
$(DOCKER_FPM_QUAGGA)_RUN_OPT += -v /etc/sonic:/etc/sonic:ro

$(DOCKER_FPM_QUAGGA)_BASE_IMAGE_FILES += vtysh:/usr/bin/vtysh
$(DOCKER_FPM_QUAGGA)_BASE_IMAGE_FILES += bgp_neighbor:/usr/bin/bgp_neighbor
2 changes: 1 addition & 1 deletion src/sonic-utilities

0 comments on commit 95906a6

Please sign in to comment.