Added alternate chroot function that uses systemd-nspawn instead of chroot, for host systems that use systemd. Haven't tested yet.

This commit is contained in:
Charles Cross 2016-05-02 12:16:03 -07:00
parent 953a40e003
commit fcac3a1456

View File

@ -63,6 +63,11 @@ on_chroot() {
chroot ${ROOTFS_DIR}/ "$@" chroot ${ROOTFS_DIR}/ "$@"
} }
# This should be used if building on a system that uses systemd (?)
on_chroot2() {
systemd-nspawn -D ${ROOTFS_DIR}/ "$@"
}
update_issue() { update_issue() {
echo -e "Raspberry Pi reference ${DATE}\nGenerated using Pi-gen, https://github.com/RPi-Distro/Pi-gen, ${1}" > ${ROOTFS_DIR}/etc/rpi-issue echo -e "Raspberry Pi reference ${DATE}\nGenerated using Pi-gen, https://github.com/RPi-Distro/Pi-gen, ${1}" > ${ROOTFS_DIR}/etc/rpi-issue
} }