From 6d36f551dff2058024fc2dbcb05377d49cdd81a1 Mon Sep 17 00:00:00 2001 From: imlonghao Date: Mon, 2 Mar 2020 21:42:55 +0800 Subject: [PATCH] copy the real resolv.conf file --- menhera.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/menhera.sh b/menhera.sh index 1138888..1010187 100755 --- a/menhera.sh +++ b/menhera.sh @@ -138,7 +138,7 @@ menhera::install_software() { menhera::copy_config() { echo "Copying important config into new rootfs..." - ! cp -ax "${OLDROOT}/etc/resolv.conf" "${NEWROOT}/etc" + ! cp -axL "${OLDROOT}/etc/resolv.conf" "${NEWROOT}/etc" ! cp -axr "${OLDROOT}/etc/ssh" "${NEWROOT}/etc" ! cp -ax "${OLDROOT}/etc/"{passwd,shadow} "${NEWROOT}/etc" ! cp -axr "${OLDROOT}/root/.ssh" "${NEWROOT}/root"