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

Bug#774331: Work around for `fakechroot fakeroot debootstrap` failure



Hi everyone,

I have found a workaround for the problem after searching a solution
for several hours. The solution is based on
<https://www.notinventedhere.org/articles/linux/debootstrapping-debian-jessie-without-systemd.html>.

We need to do a 2-stage hack and exclude systemd to work around the bug:
$ fakechroot fakeroot debootstrap --variant=minbase --include
sysvinit-core --foreign jessie debian-chroot
http://ftp.us.debian.org/debian
$ fakechroot fakeroot sed -i -e 's/systemd systemd-sysv //g'
debian-chroot/debootstrap/required
$ FAKECHROOT_CMD_SUBST=/bin/mount=/bin/true fakechroot fakeroot chroot
debian-chroot debootstrap/debootstrap --second-stage

Enjoy your debian-chroot by running:
$ fakechroot fakeroot chroot debian-chroot

Cheers,
Alex


Reply to: