[Libguestfs] [PATCH 4/4] appliance: run systemd-tmpfiles also for /run
Richard W.M. Jones
rjones at redhat.com
Tue Jul 26 16:44:53 UTC 2016
On Tue, Jul 26, 2016 at 06:43:01PM +0200, Pino Toscano wrote:
> Setup the volatile /run in the appliance also with the tmpfiles
> configurations available. In particular, setting up correctly the lvm
> bits allow lvmetad to run.
> ---
> appliance/init | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/appliance/init b/appliance/init
> index d440007..e678e42 100755
> --- a/appliance/init
> +++ b/appliance/init
> @@ -88,7 +88,7 @@ machine_id=$(dd if=/dev/urandom bs=16 count=1 status=none | od -x -A n)
> echo "${machine_id// /}" > /etc/machine-id
>
> # Set up tmpfiles (must run after kmod.conf is created above).
> -systemd-tmpfiles --prefix=/dev --create --boot
> +systemd-tmpfiles --prefix=/dev --prefix=/run --create --boot
>
> # Find udevd and run it directly.
> for f in /lib/systemd/systemd-udevd /usr/lib/systemd/systemd-udevd \
ACK series.
Rich.
--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-p2v converts physical machines to virtual machines. Boot with a
live CD or over the network (PXE) and turn machines into KVM guests.
http://libguestfs.org/virt-v2v
More information about the Libguestfs
mailing list