overlay: fix _overlay_config_override of MOUNT_OPTIONS
authorAmir Goldstein <amir73il@gmail.com>
Wed, 27 Sep 2017 07:04:12 +0000 (10:04 +0300)
committerEryu Guan <eguan@redhat.com>
Tue, 10 Oct 2017 07:44:18 +0000 (15:44 +0800)
commit8df8ad0cd2532682aa3eacaba9f3434873705439
tree1c8641efda68a9d1e36f07678eeea5cb53629614
parent371f7f52f295450a2c7030f825a9a2677826cc97
overlay: fix _overlay_config_override of MOUNT_OPTIONS

The config variable OVERLAY_MOUNT_OPTIONS is used to configure
the overlay mount options when running ./check -overlay.
The config variable MOUNT_OPTIONS is used to configure the
mount options for base fs.

If config sets value of OVERLAY_MOUNT_OPTIONS and
does not set MOUNT_OPTIONS, the value of MOUNT_OPTIONS
may be leftover from previous _overlay_config_override, so
don't use that value for base fs mount.

Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Reviewed-by: Eryu Guan <eguan@redhat.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
common/config