Comment 10 for bug 946480

Revision history for this message
Ari Constancio (ari-constancio) wrote :

Actually I could overcome the problem adding --remove-destination to cp:

Index: libraries/remaster-live-cd.sh
===================================================================
--- libraries/remaster-live-cd.sh (revisão 463)
+++ libraries/remaster-live-cd.sh (cópia de trabalho)
@@ -356,7 +356,7 @@

  if [ ! -e "$REMASTER_DIR/etc/resolv.conf" ] ; then
   echo "Copying resolv.conf..."
- cp -f /etc/resolv.conf "$REMASTER_DIR/etc/resolv.conf" ||
+ cp -f --remove-destination /etc/resolv.conf "$REMASTER_DIR/etc/resolv.conf" ||
    failure "Failed to copy resolv.conf, error=$?"
  fi

Not sure, thought, if this hack is useful for everyone else.