Old sync(1) prints a warning which looks ugly among our
test output: "sync: ignoring all arguments"
Seen on travis, Ubuntu <= 14.04 (Trusty).
Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
function ts_fstab_close {
echo "# -->" >> /etc/fstab
- sync /etc/fstab
+ sync /etc/fstab 2>/dev/null
}
function ts_fstab_addline {
s/# <!-- util-linux.*-->//;
/^$/d" /etc/fstab
- sync /etc/fstab
+ sync /etc/fstab 2>/dev/null
ts_unlock "fstab"
}