New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
/run/resolvconf/resolv.conf not copied, no DNS in rescue system #1200
Comments
As a workaround for now use the COPY_AS_IS=( "${COPY_AS_IS[@]}" '/run/resolvconf/resolv.conf' ) FYI: |
Whoops! You need to inspect the ReaR log with full debugging rear -d -D mkbackup and inspect the ReaR log file for entries about that file. |
Additionally you may use |
first: thanks for your time and comments. I just did a backup job with your recommended options. here is a tree of the /tmp/rear.xxx folder: ├── rootfs I took a look into tmp/copy-as-is-filelist and tmp/rear-vm-mherzog-test.log. The only thing which looks strange is a tar error in copy-as-is-filelist. could you point me to the directoy where exactly the rescue system is located? |
I had a closer look into /tmp/rear.xxx/rootfs/run and also deflated /tmp/rear.xxx/tmp/initrd.cgz which I think is integrated to boot ISO of the recovery system. /run/resolvconf: |
@mat156 the
Personally, I think it should be:
And we should also copy the
But, again, start with the |
the /etc/resolv.conf file shows
which is the automatically generated content by resolvconf. but these entries are not taken to the rescue image to provide DNS resolving. is there a way to override these (non existent) settings with variables from a config file like the entries |
@gdha REQUIRED_PROGS=( "${REQUIRED_PROGS[@]}" resolvconf ) |
@mat156 BACKUP_URL=cifs://192.168.100.1/public ? |
@mat156 interesting - the link to |
The issue was already reported in #520 - but the fix was not 100% correct (only 50% I would say) - nobody seemed to bother to test it fully afterwards (I'm guilty too) |
no one's guilty... how do we proceed? I think this may be closed here and #520 reopened/continued?! |
The issue should now be fixed via |
Relax-and-Recover (rear) Issue Template
Please fill in the following items before submitting a new issue (quick response is not guaranteed with free support):
OUTPUT=ISO
BACKUP=NETFS
BACKUP_PROG=tar
BACKUP_TYPE=incremental
FULLBACKUPDAY="Sun"
NETFS_KEEP_OLD_BACKUP_COPY=y
FULLBACKUP_OUTDATED_DAYS=7
BACKUP_URL=cifs://filer.domain.tld/public
BACKUP_OPTIONS="cred=/etc/rear/cifs"
Are you using legacy BIOS or UEFI boot? VMware ESX 6.0 with BIOS boot VM
Brief description of the issue: after booting the rescue system, no DNS resolving is possible because /run/resolvconf/resolv.conf is not copied. I checked backup.log and there is no entry for this file. I know support for dynamic resolvconf generation was added some time ago and I checked the content of /usr/share/rear/rescue/GNU/Linux/300_dns.sh where everything was fine, except the file is not copied. Are there hidden options elsewhere which deny copying files from /run/...?
Work-around, if any:
backup.log.txt
The text was updated successfully, but these errors were encountered: