[systemd-devel] /etc/machine-id handling in a non-initrd / embedded environment ?!?!

Mantas Mikulėnas grawity at gmail.com
Fri Dec 27 07:06:47 PST 2013


On Fri, Dec 27, 2013 at 4:47 PM, Kay Sievers <kay at vrfy.org> wrote:
> On Fri, Dec 27, 2013 at 3:41 PM, Kay Sievers <kay at vrfy.org> wrote:
>> Yes, you can mount the root block device to a different place a second
>> time, and should be able to unlink the file and replace it, then
>> umount the file on the real /, and all should be atomic.
>
> Nah, sorry, it probably fails with being busy when it's over-mounted.
> We would need to invent some other way to do this trickery when the
> system is already up and running.

Bind mounts (`mount --bind /etc /mnt`) wouldn't fail, though.

Or bind-mounting the old /etc/machine-id to /run/machine-id.real?

-- 
Mantas Mikulėnas <grawity at gmail.com>


More information about the systemd-devel mailing list