Skip to content

Commit

Permalink
build-debian: Remove /etc/machine-id from images
Browse files Browse the repository at this point in the history
Closes #157.
  • Loading branch information
johang committed Dec 20, 2024
1 parent becb90c commit cd4d22f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@ Name=en*

[Network]
DHCP=true

[DHCP]
ClientIdentifier=mac
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@ Name=eth*

[Network]
DHCP=true

[DHCP]
ClientIdentifier=mac
3 changes: 3 additions & 0 deletions scripts/build-debian
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,9 @@ rm -v debian/usr/bin/qemu-*-static || :
# Remove ssh host keys, they will be generated on first boot by generate-ssh-host-keys.service
rm -v debian/etc/ssh/ssh_host_*_key* || :

# Remove machine-id
rm -v debian/etc/machine-id || :

cp -rv --preserve=mode ../2nd-stage-files/post-2nd-stage-files/* debian

# Set hostname
Expand Down

0 comments on commit cd4d22f

Please sign in to comment.