On Fri, May 29, 2026 at 10:56:21AM +0100, Richard W.M. Jones wrote:
On Fri, May 29, 2026 at 05:47:17AM -0400, Srihari Parimi wrote:
> + if (rs->sysroot_etc_resolv_conf_exists == false) {
> + /* do not want to leave the file which we created */
> + unlink (rs->sysroot_etc_resolv_conf);
> }
> -
> + if (verbose)
> + fprintf (stderr, "umount %s\n", rs->sysroot_etc_resolv_conf);
> + umount_ignore_fail (rs->sysroot_etc_resolv_conf);
Does it work to delete the file before unmounting the bind mount?
Probably unlink is returning an error which is being ignored.
Yes, unlink fails with:
/sysroot/etc/resolv.conf: Device or resource busy
Rich.
--
Richard Jones, Virtualization Group, Red Hat
http://people.redhat.com/~rjones
Read my programming and virtualization blog:
http://rwmj.wordpress.com
Fedora Windows cross-compiler. Compile Windows programs, test, and
build Windows installers. Over 100 libraries supported.
http://fedoraproject.org/wiki/MinGW