Public bug reported: The current UCK version fails on resolv.conf when remastering Precise Beta1.
As /etc/resolv.conf is a symlink to ../run/resolvconf/resolv.conf on Precise. Since /run is bind-mounted from the host OS, the source and destination resolv.conf are the same files, thus cp returns an error code, making uck fail. Since /run is bind-mounted it makes the entire copy of resolv.conf superfluous, so it can be removed: diff -Nurpd a/remaster-live-cd.sh b/remaster-live-cd.sh --- a/remaster-live-cd.sh 2012-03-04 16:32:00.299733023 +0100 +++ b/remaster-live-cd.sh 2012-03-04 16:43:05.375030941 +0100 @@ -354,10 +354,6 @@ function prepare_rootfs_for_chroot() { mount_pseudofilesystems - echo "Copying resolv.conf..." - cp -f /etc/resolv.conf "$REMASTER_DIR/etc/resolv.conf" || - failure "Failed to copy resolv.conf, error=$?" - echo "Copying fstab/mtab..." if [ -f "$REMASTER_DIR/etc/fstab" ] ; then mv "$REMASTER_DIR/etc/fstab" "$REMASTER_DIR/etc/fstab.uck" || Though this might make uck fail for other Ubuntu versions. I only tested with Precise. ** Affects: uck Importance: Undecided Status: New ** Affects: uck (Ubuntu) Importance: Undecided Status: New ** Also affects: uck (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/946480 Title: Remastering Precise fails on resolv.conf To manage notifications about this bug go to: https://bugs.launchpad.net/uck/+bug/946480/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs