Quickly: debootstrapping Dapper

2007 February 28
by darkness

The recipe in the debootstrap(8) page is pretty close, but it doesn’t completely do it for me. Here’s what I do:

http_proxy=http://proxy:3128 debootstrap --include=language-pack-en dapper dapper-root
mount -t proc none dapper-root/proc
cp -a /etc/hosts dapper-root/etc/hosts
cp -a /etc/apt/{apt.conf,preferences,sources.list} dapper-root/etc/apt/
chroot dapper-root
pwconv

There’s actually not much different there. Adding language-pack-en (or whatever your locale is) avoids all the nasty “I can’t find your locale” sort of messages you’ll get if (for example) Perl can’t find your locale. I also copy in my APT configurations; apt.conf comes in because it has my proxy settings. pwconv makes some things (adduser in particular, I think) not bitch (chage: the shadow password file is not present).

And don’t do what I seem to do all the time: try to debootstrap as non-root. Man, does that not work. (While we’re on the subject: make sure you don’t try this on a partition that has things like nodev or nosuid set on it.)

1 Comment leave one →
2007 April 29
Bobby R permalink

Thanks alot, this actually helped me out.. and yeah.. Bootstrapping from user accounts is definitely a big no-no.

Leave A Comment

Note: You can use basic XHTML in your comments. Your email address will never be published.

Subscribe to this comment feed via RSS