Browse Source

Merge pull request #2 from imlonghao/patch-1

copy the real resolv.conf file
master
James Swineson 1 year ago
committed by GitHub
parent
commit
0a922ee794
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      menhera.sh

2
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"

Loading…
Cancel
Save