Skip to content

Commit

Permalink
Remove predictable machine-id
Browse files Browse the repository at this point in the history
  • Loading branch information
valtzu committed Feb 8, 2025
1 parent b849d48 commit aa0be47
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions mkosi.finalize
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,3 @@ if zcat -t $BUILDROOT/usr/lib/modules/$kver/vmlinuz ; then
mv $BUILDROOT/usr/lib/modules/$kver/{vmlinuz,vmlinuz.gz}
gzip -d $BUILDROOT/usr/lib/modules/$kver/vmlinuz.gz
fi

mkdir -p $BUILDROOT/efi/loader/credentials
# This will make systemd populate /etc/machine-id from /sys/class/dmi/id/product_uuid
systemd-creds encrypt --with-key=null --name=system.machine_id <(echo -n firmware) $BUILDROOT/efi/loader/credentials/system.machine_id.cred

0 comments on commit aa0be47

Please sign in to comment.