Page MenuHomeFreeBSD

bsdinstall netconfig_ipv4: Fix resolv.conf rebuild
ClosedPublic

Authored by asiciliano on Apr 29 2022, 11:42 AM.
Tags
None
Referenced Files
F105525145: D35094.diff
Tue, Dec 17, 6:43 AM
F105481994: D35094.id105546.diff
Mon, Dec 16, 6:35 PM
Unknown Object (File)
Sat, Dec 14, 12:32 PM
Unknown Object (File)
Tue, Dec 10, 2:15 PM
Unknown Object (File)
Sun, Dec 1, 7:32 AM
Unknown Object (File)
Oct 15 2024, 1:57 PM
Unknown Object (File)
Sep 29 2024, 3:36 AM
Unknown Object (File)
Sep 28 2024, 10:50 PM
Subscribers

Details

Summary

Trick to fix PR https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=262262.

Problem: After installation restart dhclient does not rebuild resolv.conf so "[bsd]dialog --mixedgaude" in bsdinstall/scripts/netconfig draws empty forms.
To reproduce:

  1. FreeBSD-14 CURRENT
  2. boot from the installer
  3. begin installation
  4. choose optional system components to install
  5. configure networking (IPv4, DHCP, not IPv6)
  6. observe the resolver configuration with automatically completed entries
  7. choose [Cancel] without partitioning
  8. choose [Restart]
  9. .... Installation...
  10. configure networking
  11. PR: "resolver configuration is not automated"

To fix: just adding "ifconfig interface down" before to run dhclient.

Test Plan

I used mkisofs to rebuild an installation iso after the change, then testing the installer in VirtualBox.

I followed the handbook 18.5.3 https://docs.freebsd.org/en/books/handbook/book/#disks:

% mkisofs -R -no-emul-boot -b boot/cdboot -o /tmp/bootable.iso /tmp/myboot

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable