tmptfs and haveged bits are for HW only

These changes are only needed on physical hardware there we don't have
enough memory and potentially RNG.

Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
This commit is contained in:
David Abdurachmanov 2024-12-04 13:12:52 +02:00
parent f37c684e84
commit 5234af45ee
Signed by: davidlt
GPG Key ID: 7A5F42FAF91FACC3

View File

@ -341,12 +341,14 @@ enabled=0
gpgcheck=0
EOF
if [[ "$kiwi_profiles" == *"RISCVServer"* ]]; then
# Disable tmpfs for /tmp
# Most boards don't have a lot of RAM.
systemctl mask tmp.mount
# We most likely don't have HW random number generator
systemctl enable haveged.service
fi
# Update login message
cat << EOF | tee /etc/issue /etc/issue.net