[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#445157: debootstrap - hardcoded value of TARGET in second-stage prevents creation of a foreign chroot



Package: debootstrap
Version: 1.0.3
Severity: wishlist

Emdebian is building a root filesystem that is created using debootstrap
using the --foreign option. This is then copied to an embedded device
for testing. Unfortunately, debootstrap --second-stage assumes that the
TARGET is / which is awkward when what I actually want is to test the
root filesystem (and the installation process itself) in a chroot first.

So far, I've just tweaked debootstrap:
-  TARGET=/
+  TARGET=$TARGET

so that I can pass TARGET on the command line.

Is there a cleaner way of achieving the same result, maybe debootstrap
could support / as a default and allow an override on the command line?

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.22-2-amd64 (SMP w/1 CPU core)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages debootstrap depends on:
ii  binutils                      2.18-1     The GNU assembler, linker and bina
ii  wget                          1.10.2-3   retrieves files from the web

debootstrap recommends no packages.

-- no debconf information




Reply to: