From cfa7935e43abf12483e47f6e1e345cb142126bc0 Mon Sep 17 00:00:00 2001 From: Matthew Thode Date: Thu, 22 Mar 2018 13:57:57 -0500 Subject: [PATCH] enable systemd profile for Gentoo Change-Id: Id3ac1d97b280f10f9938a60c4871d08f59b85002 --- diskimage_builder/elements/gentoo/finalise.d/99-cleanup | 5 +++++ diskimage_builder/elements/gentoo/root.d/10-gentoo-image | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/diskimage_builder/elements/gentoo/finalise.d/99-cleanup b/diskimage_builder/elements/gentoo/finalise.d/99-cleanup index 4df7841f..32a89bf4 100755 --- a/diskimage_builder/elements/gentoo/finalise.d/99-cleanup +++ b/diskimage_builder/elements/gentoo/finalise.d/99-cleanup @@ -55,3 +55,8 @@ if [[ -a /usr/sbin/grub2-install ]]; then fi unfix_shm + +# systemd id +if [[ "${GENTOO_PROFILE}" == *"systemd"* ]]; then + cp /dev/null /etc/machine-id +fi diff --git a/diskimage_builder/elements/gentoo/root.d/10-gentoo-image b/diskimage_builder/elements/gentoo/root.d/10-gentoo-image index 57166ec4..ed70276b 100755 --- a/diskimage_builder/elements/gentoo/root.d/10-gentoo-image +++ b/diskimage_builder/elements/gentoo/root.d/10-gentoo-image @@ -51,12 +51,16 @@ elif [[ "${GENTOO_PROFILE}" == "default/linux/amd64/17.0/hardened" ]]; then elif [[ "${GENTOO_PROFILE}" == "default/linux/amd64/17.0/no-multilib/hardened" ]]; then FILENAME_BASE='gentoo-stage4-hardened-nomultilib' SIGNED_SOURCE_SUFFIX='hardened+minimal-nomultilib' +elif [[ "${GENTOO_PROFILE}" == "default/linux/amd64/17.0/systemd" ]]; then + FILENAME_BASE='gentoo-stage4-systemd' + SIGNED_SOURCE_SUFFIX='systemd' else echo 'invalid profile, please select from the following profiles' echo 'default/linux/amd64/17.0' echo 'default/linux/amd64/17.0/no-multilib' echo 'default/linux/amd64/17.0/hardened' echo 'default/linux/amd64/17.0/no-multilib/hardened' + echo 'default/linux/amd64/17.0/systemd' exit 1 fi