[aboot]: preserve snmp.yml and acl.json for eos to sonic fast reboot (#3716)
This commit is contained in:
parent
b9b56c91ff
commit
9167f9da46
@ -92,7 +92,9 @@ clean_flash() {
|
|||||||
[ $f != "$cmdline_base" ] &&
|
[ $f != "$cmdline_base" ] &&
|
||||||
[ $f != "aquota.user" ] &&
|
[ $f != "aquota.user" ] &&
|
||||||
[ $f != "old_config" ] &&
|
[ $f != "old_config" ] &&
|
||||||
[ $f != "minigraph.xml" ]
|
[ $f != "minigraph.xml" ] &&
|
||||||
|
[ $f != "snmp.yml" ] &&
|
||||||
|
[ $f != "acl.json" ]
|
||||||
then
|
then
|
||||||
rm -rf "$target_path/$f"
|
rm -rf "$target_path/$f"
|
||||||
fi
|
fi
|
||||||
|
@ -223,6 +223,8 @@ if [ -f $FIRST_BOOT_FILE ]; then
|
|||||||
elif [ -f /host/minigraph.xml ]; then
|
elif [ -f /host/minigraph.xml ]; then
|
||||||
mkdir -p /etc/sonic/old_config
|
mkdir -p /etc/sonic/old_config
|
||||||
mv /host/minigraph.xml /etc/sonic/old_config/
|
mv /host/minigraph.xml /etc/sonic/old_config/
|
||||||
|
[ -f /host/acl.json ] && mv /host/acl.json /etc/sonic/old_config/
|
||||||
|
[ -f /host/snmp.yml ] && mv /host/snmp.yml /etc/sonic/old_config/
|
||||||
touch /tmp/pending_config_migration
|
touch /tmp/pending_config_migration
|
||||||
elif [ -n "$migration" ] && [ -f /host/migration/minigraph.xml ]; then
|
elif [ -n "$migration" ] && [ -f /host/migration/minigraph.xml ]; then
|
||||||
mkdir -p /etc/sonic/old_config
|
mkdir -p /etc/sonic/old_config
|
||||||
|
Loading…
Reference in New Issue
Block a user