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

Bug#734743: debootstrap: Assumes MAKEDEV is in /sbin which may not be true on a non-debian rootfs



Wookey <wookey@wookware.org> (2014-01-09):
> Package: debootstrap
> Version: 1.0.56
> Severity: normal
> 
> If using debootstrap to create a debian or ubuntu rootfs on a non-debian
> system, the baked-in assumption that MAKEDEV is in /sbin is wrong. (It's
> not true on an OE rootfs, for example).
> 
> The instructions in README for creating such a rootfs say:
> Unpack the tarball then:
> make devices.tar.gz
> export DEBOOTSTRAP_DIR=`pwd`
> debootstrap sid sid
> 
> The make devices.tar.gz step fails when MAKEDEV is not in /sbin.
> 
> We could stop using MAKEDEV, as suggested in #571136.
> 
> In the meantime, changing the line in Makefile
> 
> MAKEDEV := /sbin/MAKEDEV
> to
> MAKEDEV ?= /sbin/MAKEDEV
> 
> would allow make to be called with a setting for where MAKEDEV is (copying a version over from somewhere should be practical)
> 
> make MAKEDEV='/home/user/utils/MAKEDEV' devices.tar.gz
> 
> I tested this and it work (so long as an absolute path is given)

Allowing an override shouldn't hurt AFAICT, so I'm tempted to commit
this.

Mraw,
KiBi.

Attachment: signature.asc
Description: Digital signature


Reply to: