Failed to copy resolv.conf, error=1

Asked by eugenio montanez

I'm executing UCK under ubuntu 11.10 trying to personalize ubuntu-desktop-12.04.iso, but aborts at the begining.
I've customized ubuntu 10.10, 11.10 (with problems not solved "desktop launcher").
This time the build.log sais:

Build (/usr/bin/uck-gui --wait-before-exit) started at 2012-05-04 11:28:33
>> Ubuntu Customization Kit 2.4.5 on Ubuntu 11.10, 3.0.0-12-generic i686
Starting CD remastering on Sex Mai 4 11:28:40 AMT 2012
Customization dir=/home/eugenio/tmp/customization-scripts
Mounting ISO image...
mount: warning: /home/eugenio/tmp/remaster-iso-mount seems to be mounted read-only.
Unpacking ISO image...
Unmounting ISO image...
Mounting SquashFS image...
mount: warning: /home/eugenio/tmp/remaster-root-mount seems to be mounted read-only.
Unpacking SquashFS image...
Unmounting SquashFS image...
Creating apt cache...
Creating root home...
Mounting /proc
Mounting /sys
Mounting /dev/pts
Mounting /tmp
Mounting /home/eugenio/tmp/remaster-root-home
Mounting /home/eugenio/tmp/remaster-apt-cache
Mounting /run
Mounting /home/eugenio/tmp/customization-scripts
Copying resolv.conf...
cp: not writing through dangling symlink `/home/eugenio/tmp/remaster-root/etc/resolv.conf'
Unmounting /home/eugenio/tmp/remaster-root/var/cache/apt...
Unmounting /home/eugenio/tmp/remaster-root/tmp/customization-scripts...
Unmounting /home/eugenio/tmp/remaster-root/tmp...
Unmounting /home/eugenio/tmp/remaster-root/sys...
Unmounting /home/eugenio/tmp/remaster-root/run...
Unmounting /home/eugenio/tmp/remaster-root/root...
Unmounting /home/eugenio/tmp/remaster-root/proc...
Unmounting /home/eugenio/tmp/remaster-root/dev/pts...
Failed to copy resolv.conf, error=1

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu uck Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Fabrizio Balliano (fabrizio-balliano) said :
#1

you've to use 2.4.6, check sourceforge website

Revision history for this message
eugenio montanez (eugenio-montanez-4) said :
#2

I'll do in a moment.

Revision history for this message
eugenio montanez (eugenio-montanez-4) said :
#3

Some thing, this time I've choiced unity from (unity, gnome, kde)

Message:
Please look at /home/eugenio/tmp/build.log to see what went wrong.

If you cannot find the problem, please send a support request at:

 https://launchpad.net/products/uck/+addticket

--------------
#build.log
Build (/usr/bin/uck-gui --wait-before-exit) started at 2012-05-04 13:25:46
>> Ubuntu Customization Kit 2.4.6 on Ubuntu 11.10, 3.0.0-12-generic i686
Starting CD remastering on Sex Mai 4 13:25:51 AMT 2012
Customization dir=/home/eugenio/tmp/customization-scripts
Mounting ISO image...
mount: warning: /home/eugenio/tmp/remaster-iso-mount seems to be mounted read-only.
Unpacking ISO image...
Unmounting ISO image...
Mounting SquashFS image...
mount: warning: /home/eugenio/tmp/remaster-root-mount seems to be mounted read-only.
Unpacking SquashFS image...
Unmounting SquashFS image...
Creating apt cache...
Creating root home...
Mounting /proc
Mounting /sys
Mounting /dev/pts
Mounting /tmp
Mounting /home/eugenio/tmp/remaster-root-home
Mounting /home/eugenio/tmp/remaster-apt-cache
Mounting /run
Mounting /home/eugenio/tmp/customization-scripts
Copying resolv.conf...
cp: not writing through dangling symlink `/home/eugenio/tmp/remaster-root/etc/resolv.conf'
Unmounting /home/eugenio/tmp/remaster-root/var/cache/apt...
Unmounting /home/eugenio/tmp/remaster-root/tmp/customization-scripts...
Unmounting /home/eugenio/tmp/remaster-root/tmp...
Unmounting /home/eugenio/tmp/remaster-root/sys...
Unmounting /home/eugenio/tmp/remaster-root/run...
Unmounting /home/eugenio/tmp/remaster-root/root...
Unmounting /home/eugenio/tmp/remaster-root/proc...
Unmounting /home/eugenio/tmp/remaster-root/dev/pts...
Failed to copy resolv.conf, error=1
Build ended at 2012-05-04 13:28:31

Revision history for this message
Vasily A. Klimov (wolf-stinger) said :
#4

#vi vi /usr/lib/uck/remaster-live-cd.sh

go to string 358 ( on vi editor just print :set number and press enter)

and change

358 cp -d /etc/resolv.conf "$REMASTER_DIR/etc/resolv.conf" ||

Revision history for this message
eugenio montanez (eugenio-montanez-4) said :
#5

I'm reading on remaster-live-cd.sh the lines that have resolv.conf and the line 358 like you said:

eugenio@CLTI-30:~$ cat /usr/lib/uck/remaster-live-cd.sh | nl | grep resolv.conf
   315 if [ ! -e "$REMASTER_DIR/etc/resolv.conf" ] ; then
   316 echo "Copying resolv.conf..."
   317 cp -f /etc/resolv.conf "$REMASTER_DIR/etc/resolv.conf" ||
   318 failure "Failed to copy resolv.conf, error=$?"
   389 if [ ! -h "$REMASTER_DIR/etc/resolv.conf" ] ; then
   390 echo "Removing generated resolv.conf..."
   391 chroot "$REMASTER_DIR" rm -f /etc/resolv.conf

eugenio@CLTI-30:~$ cat /usr/lib/uck/remaster-live-cd.sh | nl | grep 358
   358 mv "$varrun"/$flag "$varrun"/$flag.uck_blocked

You said to change the line 358, are you sure?

Revision history for this message
Zarigueya Cabrera (warhtek) said :
#6

actually it seems that the line is the 359 to find it, press ctrl + f in your editor and look for resolv.conf, the line appears as cp -d /etc/resolv.conf "$REMASTER_DIR/etc/resolv.conf" || you need to change it to mv /etc/resolv.conf "$REMASTER_DIR/etc/resolv.conf" || it works for me good look

Revision history for this message
Zarigueya Cabrera (warhtek) said :
#7

sorry the line is cp -f /etc/resolv.conf "$REMASTER_DIR/etc/resolv.conf" || you need to change it to mv /etc/resolv.conf "$REMASTER_DIR/etc/resolv.conf" ||

Can you help with this problem?

Provide an answer of your own, or ask eugenio montanez for more information if necessary.

To post a message you must log in.