Skip to content

Commit

Permalink
Remove hostname and mailname from update file (#719)
Browse files Browse the repository at this point in the history
This has potential to cause user confusion on fresh install
as the hostname will be appended as comment to SSH host keys.
Removing hostname file causes SSH host keys to have comment of
root@localhost.

(cherry picked from commit 81d290e)
(cherry picked from commit 548cc1a)

Co-authored-by: Andrew Walker <[email protected]>
  • Loading branch information
bugclerk and anodos325 authored Sep 18, 2024
1 parent 76bc917 commit a053bec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scale_build/image/mtree.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,10 @@
'etc/exports',
'etc/ftpusers',
'etc/idmapd.conf',
'etc/hostname',
'etc/hosts',
'etc/krb5.conf',
'etc/mailname',
'etc/motd',
'etc/nscd.conf',
'etc/resolv.conf',
Expand Down Expand Up @@ -66,8 +68,6 @@ def _do_mtree_impl(mtree_file_path, version):
'-c', '--format=mtree',
'--exclude', './etc/fstab',
'--exclude', './etc/group',
'--exclude', './etc/hostname',
'--exclude', './etc/hostname',
'--exclude', './etc/machine-id',
'--exclude', './etc/nsswitch.conf',
'--exclude', './etc/passwd',
Expand Down

0 comments on commit a053bec

Please sign in to comment.