Bug#849806: mdadm: Administrator should be warned about the dangers of HOMEHOST <system>

Matthew Gabeler-Lee cheetah at fastcat.org
Tue Jan 3 19:04:30 UTC 2017


On Tue, 3 Jan 2017, Dimitri John Ledkov wrote:

> On 31 December 2016 at 09:48, Matthew Gabeler-Lee <cheetah at fastcat.org> wrote:
>> Snazzy would be to bake the system hostname into the initramfs (Ubuntu seems
>> to do this as part of the baseline initramfs-tools, but Debian not so much)
>> so that this problem largely went away.
>>
>
> Ouch. Imho hostname should be copied into initramfs. But I do not know
> the history of where this change was done in Ubuntu and/or why not
> done in Debian.
> I am not sure if it is appropriate for mdadm package initramfs hooks
> to copy /etc/hostname into initramfs. Maybe it should be done
> somewhere more universal, e.g. initramfs-tools itself.

Agreed that it shouldn't be mdadm's responsibility to bake the hostname 
into the initramfs.

And that doesn't cover systems with dynamic hostnames -- Those really 
shouldn't be trying to use a DNS name for the homehost at all.  There's 
an argument for an enhancement to use the systemd/dbus machine guid 
instead of hostnames here, though that comes with its own 
complexities...

-- 
 	-Matt
"Reality is that which, when you stop believing in it, doesn't go away".
                 -- Philip K. Dick
GPG fingerprint: 0061 15DF D282 D4A9 57CE  77C5 16AF 1460 4A3C C4E9



More information about the pkg-mdadm-devel mailing list