From fcac3a1456f0513dd25eb5a9b3497b9f17f92edb Mon Sep 17 00:00:00 2001 From: Charles Cross Date: Mon, 2 May 2016 12:16:03 -0700 Subject: [PATCH] Added alternate chroot function that uses systemd-nspawn instead of chroot, for host systems that use systemd. Haven't tested yet. --- scripts/common | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/common b/scripts/common index 814f37f..936e0a4 100644 --- a/scripts/common +++ b/scripts/common @@ -63,6 +63,11 @@ on_chroot() { chroot ${ROOTFS_DIR}/ "$@" } +# This should be used if building on a system that uses systemd (?) +on_chroot2() { + systemd-nspawn -D ${ROOTFS_DIR}/ "$@" +} + 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 }