]> git.proxmox.com Git - mirror_lxc.git/commit
legacy/lxc-ls: improve finding fs mountpoint of hierarchy
authorNatanael Copa <ncopa@alpinelinux.org>
Wed, 26 Dec 2012 09:07:04 +0000 (10:07 +0100)
committerStéphane Graber <stgraber@ubuntu.com>
Wed, 2 Jan 2013 17:48:13 +0000 (12:48 -0500)
commit32e869018640e0d898031de20514e0ffca79baa9
treed829842e47afe9e21128ee13cb1cc825afca47f3
parentf358385a7cf0ec74925d7f26b8a9dab1225dc2b6
legacy/lxc-ls: improve finding fs mountpoint of hierarchy

We cannot assume that the mount source name always starts with 'cgroup'
so we check the filesystem type instead.

Use 'awk' instead of 'grep -E' and  as it is a better tool for this job.

This fixes the tool on systems using openrc.

Signed-off-by: Natanael Copa <ncopa@alpinelinux.org>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
src/lxc/legacy/lxc-ls.in