Comment 9 for bug 1713149

Revision history for this message
Frank Burkhardt (fbo) wrote :

Hi,

(installing Bionic here)

a possible solution is to make sure, /target/run is already mounted (bind-mount to /run) when debootstrap is running which will make systemd create its resolv.conf copy in the correct /run-filesystem. Otherwise, it would write to the /target-partition and in-target would hide the stuff in there when doint its bind-mounts.

For now I create (and make executable) the script /usr/lib/base-installer.d/41init-run via early_command:

#!/bin/sh
mkdir -p /target/run
mount --bind /run /target/run

IMHO this should be done by the base-installer.