mirror of https://github.com/ansible/ansible.git
filesystem: workaround bug in xfs_info, use xfs_growfs instead (#25703)
xfs_info is a bash script located in /usr/sbin/ (/sbin is a symlink to /usr/sbin/) which calls xfs_growfs command. When neither /sbin nor /usr/sbin are in the PATH environment variable, filesystem module is able to call xfs_info because /sbin path is hardcoded in get_bin_path method, then xfs_growfs isn't found because neither /sbin nor /usr/sbin are in the PATH environment variable. "xfs_growfs -n" could be used directly instead of xfs_info, the man page states that: "xfs_info is equivalent to invoking xfs_growfs with the -n option". Fixes #24823.pull/27271/merge
parent
bb5b1680f8
commit
9d771f6eea
Loading…
Reference in New Issue