Adds _clone_mount_option() helper function to handle filesystem-specific requirements for mounting cloned devices. Abstract the need for -o nouuid on XFS. Signed-off-by: Anand Jain --- common/rc | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/common/rc b/common/rc index a2ee23c45003..7ae9877918c8 100644 --- a/common/rc +++ b/common/rc @@ -397,6 +397,20 @@ _scratch_mount_options() $SCRATCH_DEV $SCRATCH_MNT } +_clone_mount_option() +{ + local mount_opts="" + + case "$FSTYP" in + xfs) + mount_opts="-o nouuid" + ;; + *) + esac + + echo $mount_opts +} + _supports_filetype() { local dir=$1 -- 2.43.0