diff options
Diffstat (limited to 'meta/classes/rootfs-postcommands.bbclass')
-rw-r--r-- | meta/classes/rootfs-postcommands.bbclass | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/meta/classes/rootfs-postcommands.bbclass b/meta/classes/rootfs-postcommands.bbclass index bde58ad6cd..89f8efd323 100644 --- a/meta/classes/rootfs-postcommands.bbclass +++ b/meta/classes/rootfs-postcommands.bbclass | |||
@@ -126,6 +126,12 @@ read_only_rootfs_hook () { | |||
126 | ${IMAGE_ROOTFS}/etc/init.d/populate-volatile.sh | 126 | ${IMAGE_ROOTFS}/etc/init.d/populate-volatile.sh |
127 | fi | 127 | fi |
128 | fi | 128 | fi |
129 | |||
130 | if ${@bb.utils.contains("DISTRO_FEATURES", "systemd", "true", "false", d)}; then | ||
131 | # Create machine-id | ||
132 | # 20:12 < mezcalero> koen: you have three options: a) run systemd-machine-id-setup at install time, b) have / read-only and an empty file there (for stateless) and c) boot with / writable | ||
133 | touch ${IMAGE_ROOTFS}${sysconfdir}/machine-id | ||
134 | fi | ||
129 | } | 135 | } |
130 | 136 | ||
131 | # | 137 | # |