Hmm. The 'set -x' output is truncated, confusingly, but I think I have a guess. My suspicion is that 'blockdev --setro' fails when the block device is in use due to being part of a DM-RAID array or LVM physical volume.
Hmm. The 'set -x' output is truncated, confusingly, but I think I have a guess. My suspicion is that 'blockdev --setro' fails when the block device is in use due to being part of a DM-RAID array or LVM physical volume.