Fix gating test error and rpminspect error

Resolves: rhbz#1870487, rhbz#1880529

Signed-off-by: Xiao Ni <xni@redhat.com>
This commit is contained in:
Xiao Ni 2021-08-13 21:05:59 +08:00
parent e43676e18e
commit c5a8bb3e1e
2 changed files with 8 additions and 4 deletions

View File

@ -1,7 +1,7 @@
Name: mdadm Name: mdadm
Version: 4.2 Version: 4.2
%define subversion rc2 %define subversion rc2
Release: rc2_1%{?dist}.1 Release: rc2_1%{?dist}.2
Summary: The mdadm program controls Linux md devices (software RAID arrays) Summary: The mdadm program controls Linux md devices (software RAID arrays)
URL: http://www.kernel.org/pub/linux/utils/raid/mdadm/ URL: http://www.kernel.org/pub/linux/utils/raid/mdadm/
License: GPLv2+ License: GPLv2+
@ -83,13 +83,17 @@ install -m644 %{SOURCE6} %{buildroot}/etc/libreport/events.d
%{_sbindir}/* %{_sbindir}/*
%{_unitdir}/* %{_unitdir}/*
%{_mandir}/man*/md* %{_mandir}/man*/md*
/usr/lib/systemd/system-shutdown/* %{_prefix}/lib/systemd/system-shutdown/*
%config(noreplace) %{_sysconfdir}/sysconfig/* %config(noreplace) %{_sysconfdir}/sysconfig/*
%dir /run/%{name}/ %dir /run/%{name}/
%config(noreplace) %{_tmpfilesdir}/%{name}.conf %config(noreplace) %{_tmpfilesdir}/%{name}.conf
/etc/libreport/events.d/* /etc/libreport/events.d/*
%changelog %changelog
* Fri Aug 13 2021 Xiao Ni <xni@redhat.com> - 4.2-rc2_1.2
- Fix gating test error and rpminspect error
- Resolves rhbz#1870487, rhbz#1880529
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 4.2-rc2_1.1 * Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 4.2-rc2_1.1
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags - Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
Related: rhbz#1991688 Related: rhbz#1991688

View File

@ -568,7 +568,7 @@ function Create_Loop_Devices (){
local size_mib="$2" local size_mib="$2"
local loop_dev_list='' local loop_dev_list=''
for X in `seq 1 ${count}`;do for X in `seq 1 ${count}`;do
local loop_file_name=$(mktemp /tmp/loop.XXXXXX) local loop_file_name=$(mktemp /root/loop.XXXXXX)
dd if=/dev/zero of=${loop_file_name} count=$size_mib bs=1M 1>/dev/null 2>&1 dd if=/dev/zero of=${loop_file_name} count=$size_mib bs=1M 1>/dev/null 2>&1
local loop_dev_name=$(losetup -f) local loop_dev_name=$(losetup -f)
#BUG: RHEL5 only support 8 loop device and we need to check whether we are run out of it #BUG: RHEL5 only support 8 loop device and we need to check whether we are run out of it
@ -623,7 +623,7 @@ function remove_disks() {
((try_num++)) ((try_num++))
done done
done done
rm -rf /tmp/loop.* rm -rf /root/loop.*
} }