mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
generator/customize: reintroduce "--selinux-relabel" as a compat option
Removing "--selinux-relabel" in commit2f6a27f107("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:2f6a27f107Bugzilla: 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 commit4b9ee1052a)
This commit is contained in:
committed by
Richard W.M. Jones
parent
8f800b369a
commit
4cfba19fa2
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user