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:
parent
953a40e003
commit
fcac3a1456
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user