I am not able to successfully redirect STDOUT+STDERR on commands that operates with disks. Standard redirecting which always works, is somehow now catching the output. Two practical examples:
Example 1:
# wipefs --all --force /dev/sda >>/var/log/custom.log 2>&1
[ 20.169018 ] sda: sda1
Example 2:
# mount --verbose --options defaults --types ext4 /dev/sda1 /path/is/here >>/var/log/custom.log 2>&1
[ 30.947410 ] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
Interesting is, that this only happens when touching disks somehow. All other redirects within the script works as expected.
Any ideas?