Failed to copy resolv.conf, error=1

Bug #1125624 reported by András Péteri
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu Customization Kit
New
Undecided
Unassigned

Bug Description

When trying to remaster an Ubuntu Studio 12.04.2 i386 ISO image in a virtual machine running Ubuntu 12.04.2 i386, I get the following error:

[...]
Creating root home...
Mounting /proc
Mounting /sys
Mounting /dev/pts
Mounting /tmp
Mounting /home/vmuser/tmp/remaster-root-home
Mounting /home/vmuser/tmp/remaster-apt-cache
Mounting /run
Mounting /home/vmuser/tmp/customization-scripts
Copying resolv.conf...
cp: `/etc/resolv.conf' and `/home/vmuser/tmp/remaster-root/etc/resolv.conf' are the same file
Unmounting /home/vmuser/tmp/remaster-root/var/cache/apt...
Unmounting /home/vmuser/tmp/remaster-root/tmp/customization-scripts...
Unmounting /home/vmuser/tmp/remaster-root/tmp...
Unmounting /home/vmuser/tmp/remaster-root/sys...
Unmounting /home/vmuser/tmp/remaster-root/run...
Unmounting /home/vmuser/tmp/remaster-root/root...
Unmounting /home/vmuser/tmp/remaster-root/proc...
Unmounting /home/vmuser/tmp/remaster-root/dev/pts...
Failed to copy resolv.conf, error=1

In mount_pseudofilesystems(), /run is bind mounted to /home/vmuser/tmp/remaster-root/run before copying; on both host and remastered systems, /etc/resolv.conf is a symlink to "../run/resolvconf/resolv.conf", so source and destination paths end up pointing to the same file.

Revision history for this message
András Péteri (apeteri) wrote :

Looks like I'm the millionth person reporting this. Launchpad's duplicate bug detection didn't quite help, sorry about that.

Marking this issue as a duplicate of #1011191.

Revision history for this message
salemboot (salemboot) wrote :

Check to see if /etc/resolv.conf actually exists.
If it doesn't, just "sudo touch /etc/resolv.conf"

Respectfully,

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.