etc/dists/scripts/*-set_ugid_quota.sh: enhancements
Rework these scripts to:
1. Use cat and shell's "here document" instead of echo
2. Remove error message printing ("Can't create script file") since
it is now printed by cat itself.
3. Use awk to prevent changing /etc/mtab if it is already fixed for
quota on case (newer kernel do that).
4. Try to get device name from the file, if not found revert to supplied one.
Inspired by commit e324b0ade (which, well, was mostly right).
Somewhat relevant to bug #1904:
http://bugzilla.openvz.org/1904
Signed-off-by: Kir Kolyshkin <kir@openvz.org>
3 files changed