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.
Rich.
--
Richard Jones, Virtualization Group, Red Hat
http://people.redhat.com/~rjones
Read my programming and virtualization blog:
http://rwmj.wordpress.com
virt-top is 'top' for virtual machines. Tiny program with many
powerful monitoring features, net stats, disk stats, logging, etc.
http://people.redhat.com/~rjones/virt-top