Differences between revisions 3 and 4
Revision 3 as of 2017-08-25 14:08:58
Size: 2143
Editor: ?PierreNeyron
Comment: fakechroot call is needed
Revision 4 as of 2017-08-31 05:08:11
Size: 2090
Editor: PaulWise
Comment: drop question in favour of the answer
Deletions are marked like this. Additions are marked like this.
Line 20: Line 20:
# fakechroot # (not sure if needed here -> yes it is: it sets environment variables which are required by debootstrap --variant=fakechroot) # fakechroot # sets environment variables required by debootstrap --variant=fakechroot

Translation(s): none

(!) ?Discussion



DebianOn is an effort to document how to install, configure and use Debian on some specific hardware. Therefore potential buyers would know if that hardware is supported and owners would know how get the best out of that hardware.

The purpose is not to duplicate the Debian Official Documentation, but to document how to install Debian on some specific hardware.

If you need help to get Debian running on your hardware, please have a look at our user support channels where you may find specific channels (mailing list, IRC channel) dedicated to certain types of hardware.

Mini HOWTO create a Debian fakechroot

First you need to install fakeroot, fakechroot, debootstrap and dpkg.

Then, as your normal user:

# mkdir -p fakechroot/debian
# fakechroot # sets environment variables required by debootstrap --variant=fakechroot
# fakeroot
# export PATH=/usr/sbin:/sbin:$PATH
# debootstrap --foreign --variant=fakechroot --exclude dhcp3-server,dhcp3-server-ldap sid fakechroot/debian
# echo "int main() { return 0; }" | gcc -x c - -o fakechroot/debian/usr/sbin/chown
# echo "int main() { return 0; }" | gcc -x c - -o fakechroot/debian/usr/sbin/chmod
# echo "int main() { return 0; }" | gcc -x c - -o fakechroot/debian/usr/sbin/chgrp
# DEBOOTSTRAP_DIR=fakechroot/debian/debootstrap debootstrap --second-stage --second-stage-target=fakechroot/debian

Note that I have replaced chown/chmod/chgrp by dummies in this HOWTO. This is because there seems to be trouble with them. You can replace them later by real ones if you like. I also exclude dhcp3-server* as it uses rm together with an absolute path and rm is not mapped by fakechroot, therefore this doesn't work. The easiest method here was to just exclude it.

(Btw., it took some time to figure out all the problems and how to work around them.)