Package: debian-installer
Version: daily 20090222
Severity: important

Hi,

I tried to install kfreebsd-i386 into a kvm domain.  I booted from this
image:
http://d-i.debian.org/daily-images/kfreebsd-i386/20090922-10:20/monolithic/mini.iso

Installing the base system failed with this in the syslog:

debootstrap: /usr/sbin/debootstrap:
debootstrap: line 1:
debootstrap: sudo: not found
debootstrap: 

Note that / has neither sudo, nor dpkg.

Applying this patch to functions helped:

finzi:~# diff -u /functions.orig /functions
--- /functions.orig     2009-09-22 14:32:36.000000000 -0400
+++ /functions  2009-09-22 14:32:36.000000000 -0400
@@ -1062,8 +1062,8 @@
        done >"$TARGET/var/lib/dpkg/available"
 
        for pkg; do
-               echo "$pkg install" | sudo dpkg --admindir 
"$TARGET/var/lib/dpkg" --set-selections
-       done
+               echo "$pkg install"
+       done | chroot "$TARGET" dpkg --set-selections
 }
 
 get_next_predep () {

Cheers,
weasel



-- 
To UNSUBSCRIBE, email to debian-boot-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to