generator/customize: reintroduce "--selinux-relabel" as a compat option

Removing "--selinux-relabel" in commit 2f6a27f107 ("generator/customize:
invert SELinux relabeling default", 2022-05-11) breaks existing scripts
that invoke virt-customize and/or virt-sysprep with that option. Restore
the option, with no functionality tied to it.

Fixes: 2f6a27f107
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2089748
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Message-Id: <20220525071958.9612-1-lersek@redhat.com>
Reviewed-by: Richard W.M. Jones <rjones@redhat.com>
(cherry picked from commit 4b9ee1052a)
This commit is contained in:
Laszlo Ersek
2022-05-25 09:19:58 +02:00
committed by Richard W.M. Jones
parent 8f800b369a
commit 4cfba19fa2

View File

@@ -581,6 +581,13 @@ option disables the automatic relabeling.
The option is a no-op for guests that do not support SELinux.";
};
{ flag_name = "selinux-relabel";
flag_type = FlagBool false;
flag_ml_var = "selinux_relabel_ignored";
flag_shortdesc = "Compatibility option doing nothing";
flag_pod_longdesc = "This is a compatibility option that does nothing.";
};
{ flag_name = "sm-credentials";
flag_type = FlagSMCredentials "SELECTOR";
flag_ml_var = "sm_credentials";