Package: qemu
Version: 0.9.1-6
Severity: normal
Tags: patch

The script qemu-make-debian-root fails when using a temporary directory created
with mktemp.

The value returned by mktemp is the complete /tmp/mount.XXXXXX path, so the
script should not prepend the /tmp/ prefix. Also the temporary directory
is created by mktemp, so the mkdir returns an error.

This is my patch:

--- /usr/sbin/qemu-make-debian-root.dist        2008-08-25 09:39:53.000000000 
+0200
+++ /usr/sbin/qemu-make-debian-root     2008-10-15 18:08:34.000000000 +0200
@@ -76,9 +76,9 @@

 TMP_DIR="$(mktemp -d /tmp/mount.XXXXXX)" || \
          { echo >&2 "Failed to create temporary directory"; exit 1; }
+TMP_DIR="$(basename $TMP_DIR)"

 # Mount it.
-mkdir /tmp/$TMP_DIR
 mount -o loop $IMAGE.ext2 /tmp/$TMP_DIR

 # Do debian install on it.

-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-1-686 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages qemu depends on:
ii  bochsbios          2.3.7-1               BIOS for the Bochs emulator
ii  libasound2         1.0.16-2              ALSA library
ii  libbrlapi0.5       3.10~r3724-1+b1       braille display access via BRLTTY 
ii  libc6              2.7-13                GNU C Library: Shared libraries
ii  libncurses5        5.6+20080830-1        shared libraries for terminal hand
ii  libsdl1.2debian    1.2.13-2              Simple DirectMedia Layer
ii  openbios-sparc     1.0~alpha2+20080106-2 SPARC Open Firmware
ii  openhackware       0.4.1-4               OpenFirmware emulator for PowerPC
ii  proll              18-4                  JavaStation PROM 2.x compatible re
ii  vgabios            0.6b-1                VGA BIOS software for the Bochs an
ii  zlib1g             1:1.2.3.3.dfsg-12     compression library - runtime

Versions of packages qemu recommends:
ii  debootstrap                   1.0.10     Bootstrap a basic Debian system
ii  sharutils                     1:4.6.3-1  shar, unshar, uuencode, uudecode
ii  vde2                          2.2.2-1    Virtual Distributed Ethernet

Versions of packages qemu suggests:
pn  samba                         <none>     (no description available)
ii  sudo                          1.6.9p17-1 Provide limited super user privile

-- no debconf information



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to