#3493 PR merged: Copy /etc/dhcpcd.conf to the rescue system

Labels: enhancement, fixed / solved / done

svlv opened issue at 2025-07-09 08:53:

Relax-and-Recover (ReaR) Pull Request Template

Please fill in the following items before submitting a new pull request:

Pull Request Details:
  • Type: Enhancement

  • Impact: Normal

  • Reference to related issue (URL): https://github.com/rear/rear/issues/3491

  • How was this pull request tested?

    Rescue ISO image on Ubuntu 24.04 was created via rear mkrescue and verified that /etc/resolv.conf was populated by dhcpcd during rescue system boot

  • Description of the changes in this pull request:

    Some Linux distributions — e.g., Ubuntu 24.04 — use dhcpcd as the DHCP client. The rescue system for such distributions includes the dhcpcd binaries, but /etc/dhcpcd.conf is missing. As a result, dhcpcd does not populate /etc/resolv.conf properly, leaving it empty. Copying /etc/dhcpcd.conf to the rescue system resolves the issue.

    Alternatively, /etc/dhcpcd.conf could be created similarly to /etc/dhclient.conf, by providing a default configuration for the rescue system.

jsmeix commented at 2025-07-09 12:41:

@rear/contributors
could you please have a look here (as time permits).

I am not (yet) a dhcpcd user
so currently I cannot properly review it, cf.
https://github.com/rear/rear/issues/3491#issuecomment-3048406835

gdha commented at 2025-07-11 12:08:

@rear/contributors if there are no objections would like to merge next Monday (16 July 2025).


[Export of Github issue for rear/rear.]