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.
Actually I could overcome the problem adding --remove- destination to cp:
Index: libraries/ remaster- live-cd. sh ======= ======= ======= ======= ======= ======= ======= ======= ==== remaster- live-cd. sh (revisão 463) remaster- live-cd. sh (cópia de trabalho)
=======
--- libraries/
+++ libraries/
@@ -356,7 +356,7 @@
if [ ! -e "$REMASTER_ DIR/etc/ resolv. conf" ] ; then DIR/etc/ resolv. conf" || destination /etc/resolv.conf "$REMASTER_ DIR/etc/ resolv. conf" ||
echo "Copying resolv.conf..."
- cp -f /etc/resolv.conf "$REMASTER_
+ cp -f --remove-
failure "Failed to copy resolv.conf, error=$?"
fi
Not sure, thought, if this hack is useful for everyone else.