Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • D dhcp
  • Project information
    • Project information
    • Activity
    • Labels
    • Planning hierarchy
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 106
    • Issues 106
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • ISC Open Source Projects
  • dhcp
  • Issues
  • #174

Closed
Open
Created Mar 18, 2021 by Patrick Northon@patlefort

Overwriting resolv.conf fails when resolv.conf is a bind mount with dhclient.

  • ISC DHCP version: 4.4.2
  • Tested OS: Arch Linux, Fedora

resolv.conf become a bind mount typically inside a network namespace, if a file /etc/netns/<namespace>/resolv.conf is present. Running dhclient inside the namespace, it will fail to overwrite resolv.conf, with error mv: cannot move '/etc/resolv.conf.dhclient-new' to '/etc/resolv.conf': Device or resource busy.

Simple fix: Use cat $new_resolv_conf > /etc/resolv.conf instead of using mv in client/scripts/linux.

Assignee
Assign to
Time tracking