From a56f2a32589183effb8722420244e942b0afdd3d Mon Sep 17 00:00:00 2001 From: Daniil Baturin Date: Mon, 3 Dec 2018 02:17:58 +0100 Subject: T1047: look for a saved config in the "real" config dir at install time (i.e. not the bind-mounted /config). --- scripts/install/install-postinst-new | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/install/install-postinst-new b/scripts/install/install-postinst-new index 0ed6441d..2b23556d 100755 --- a/scripts/install/install-postinst-new +++ b/scripts/install/install-postinst-new @@ -49,8 +49,8 @@ copy_config () { # that this will include any changes made and saved by the user, # as well as changes such as interface MAC addresses automatically # generated by the user. So it is the first choice. - if [ -f "${VYATTA_NEW_CFG_DIR}/config.boot" ]; then - config=${VYATTA_NEW_CFG_DIR}/config.boot + if [ -f "${VYATTA_CFG_DIR}/config.boot" ]; then + config=${VYATTA_CFG_DIR}/config.boot fi # Third candidate: The default config file -- cgit v1.2.3