-
-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #29 from YoeDistro/cbrake/master
start documentation/settings for enabling systemd
- Loading branch information
Showing
2 changed files
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Init System | ||
|
||
SysVinit and Systemd are common init systems. SysVinit is the default, but Systemd can | ||
be enabled be adding the following to local.conf: | ||
|
||
``` | ||
DISTRO_FEATURES_append = " systemd" | ||
VIRTUAL-RUNTIME_init_manager = "systemd" | ||
DISTRO_FEATURES_BACKFILL_CONSIDERED = "sysvinit" | ||
VIRTUAL-RUNTIME_initscripts = "" | ||
``` | ||
|
||
Systemd takes considerably more space than SysVinit. With a rPI2 build, the following | ||
are the rootfs sizes for core-image-minimal: | ||
|
||
* SysVinit | ||
* space used in ext4 filesystem on running system using df: 4.7MB | ||
* adding sizes of files in image from buildhistory: 4.3MB | ||
* number of files in image: 696 | ||
* Systemd | ||
* space used in ext4 filesystem on running system using df: 33.2MB | ||
* adding sizes of files in image from buildhistory: 22MB | ||
* number of files in image: 1,806 | ||
|
||
There is a significant size cost with systemd, so in some cases it may make sense to | ||
use sysvinit if image size is a priority. |