enable systemd profile for Gentoo

Change-Id: Id3ac1d97b280f10f9938a60c4871d08f59b85002
This commit is contained in:
Matthew Thode 2018-03-22 13:57:57 -05:00
parent a49f4c3a37
commit cfa7935e43
No known key found for this signature in database
GPG Key ID: 64A37BEAAE19A4E8
2 changed files with 9 additions and 0 deletions

View File

@ -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

View File

@ -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