Page MenuHomeFreeBSD

bsdinstall netconfig_ipv4: Fix resolv.conf rebuild
ClosedPublic

Authored by asiciliano on Apr 29 2022, 11:42 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Mar 7, 4:24 PM
Unknown Object (File)
Jan 17 2024, 7:25 AM
Unknown Object (File)
Dec 22 2023, 12:29 AM
Unknown Object (File)
Dec 21 2023, 5:25 PM
Unknown Object (File)
Dec 20 2023, 6:28 AM
Unknown Object (File)
Sep 28 2023, 8:00 AM
Unknown Object (File)
Sep 5 2023, 9:57 PM
Unknown Object (File)
Jul 4 2023, 4:58 AM
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