You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
enter_trup_shell(global_options=>'-c') if is_transactional;
35
+
script_run('zypper in -i selinux-migration trasnactional-update', 600);
36
+
exit_trup_shell if is_transactional;
37
+
process_reboot(trigger=> 1);
26
38
27
-
if (script_run("zypper info selinux-policy | grep -q 'out-of-date'")) {
28
-
29
-
update_selinux_policy();
30
39
}
40
+
#script_run("mkdir -p /var/lib/selinux");
41
+
42
+
# if (script_run("zypper info selinux-policy | grep -q 'out-of-date'")) {
43
+
44
+
update_selinux_policy();
45
+
#}
31
46
32
47
33
48
check_paths();
@@ -109,10 +124,21 @@ sub create_snapshot {
109
124
subupdate_selinux_policy {
110
125
record_info('Updating SELinux policy');
111
126
zypper_call("--gpg-auto-import-keys ref");
127
+
script_run("zypper info selinux-policy");
112
128
if (is_microos) {
113
129
validate_script_output('sestatus', sub { m/SELinux status: .*enabled/ && m/Current mode: .*enforcing/ }, fail_message=>'SELinux is NOT enabled and set to enforcing');
114
-
trup_call('dup', timeout=> 600);
130
+
131
+
enter_trup_shell(global_options=>'-c') if is_transactional;
0 commit comments