[Issue 546] Enable boot.d when running systemd init.

This change separates the overlays for sysvinit and systemd builds.

- The inittab is overlayed if using sysvinit.
- /sbin/init is replaced by a script which calls the boot.d sequence and then execs /lib/systemd/systemd when using systemd.
This commit is contained in:
Jeffrey Townsend
2019-06-13 16:15:43 +00:00
parent db1fa214dd
commit 3f4bb55187
3 changed files with 5 additions and 0 deletions

View File

@@ -66,6 +66,7 @@ Multistrap:
Configure:
overlays:
- ${ONL}/builds/any/rootfs/${ONL_DEBIAN_SUITE}/common/overlay
- ${ONL}/builds/any/rootfs/${ONL_DEBIAN_SUITE}/${INIT}/overlay
update-rc.d:
- 'faultd defaults'

View File

@@ -0,0 +1,4 @@
#!/bin/bash
/etc/boot.d/boot
echo "Starting systemd..."
exec /lib/systemd/systemd