[Libguestfs] [PATCH] daemon: always provide stdin when running chroot commands (RHBZ#1280029)

Richard W.M. Jones rjones at redhat.com
Wed Dec 2 12:33:54 UTC 2015


On Tue, Dec 01, 2015 at 05:05:51PM +0100, Mateusz Guzik wrote:
> My argument is that executing linux binaries in an environment without
> properly populated /dev is a recipe for trouble and will one day come
> back with weird failures or improperly constructed images.

They'd hardly work at all.  Luckily the code also bind-mounts /dev
(and /sys and other things) from the appliance into the chroot first.

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