On Thu, 23.04.15 13:06, Zbigniew Jędrzejewski-Szmek (zbys...@in.waw.pl) wrote:
> On Wed, Apr 22, 2015 at 12:30:32PM -0700, Lukas Rusak wrote: > > Ah, completely missed images. So perhaps something like this would be > > better? > > > > machinectl --full --no-legend --no-pager list-images | awk '{print $1}' > We usually try to avoid running external programs unless necessary. This > can be implemented in pure shell which should be slightly faster. Well, it's not that easy, since machined actually searches multiple directories, ignores certain hidden files, drops .raw suffixes and suchlike. Of course, you can replicate all that in shell, or you can avoid it... > I think you can ignore spaces for now. This is just tab completion after all, > it doesn't have to be bullet proof, and using spaces in image names would be > fairly exotic. We don't support that in machined anyway. Lennart -- Lennart Poettering, Red Hat _______________________________________________ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel