File tree Expand file tree Collapse file tree 1 file changed +2
-13
lines changed Expand file tree Collapse file tree 1 file changed +2
-13
lines changed Original file line number Diff line number Diff line change @@ -23,22 +23,11 @@ output=$1
23
23
relabel_args=()
24
24
25
25
if [ -n " $DO_RELABEL " ]; then
26
- os_arch=$( uname -m)
27
- guest_arch=$( virt-inspector -a " $output " | virt-inspector --xpath " string(/operatingsystems/operatingsystem/arch)" )
28
-
29
- if [ " $os_arch " = " $guest_arch " ] || [ " $os_arch " = " x86_64" -a " $guest_arch " = " i386" ]; then
30
- # this is what --selinux-relabel should really do, but do it ourselves
31
- # in the meanwhile -- see RHBZ#1089100.
32
- relabel_args+=(--run-command " setfiles /etc/selinux/targeted/contexts/files/file_contexts /" )
33
- else
34
- relabel_args+=(--selinux-relabel)
35
- fi
26
+ relabel_args=" --selinux-relabel"
36
27
fi
37
28
38
29
# Sysprep (removes logfiles and so on).
39
- # Note this also touches /.autorelabel so the further installation
40
- # changes that we make will be labelled properly at first boot.
41
- virt-sysprep -a $output " ${relabel_args[@]} "
30
+ virt-sysprep -a $output $relabel_args
42
31
43
32
# Sparsify.
44
33
mv $output $output .old
You can’t perform that action at this time.
0 commit comments