* [XEN PATCH] rpmball: Adjust to new rpm, do not require --force
@ 2020-08-09 18:22 Don Slutz
2020-08-14 15:23 ` Wei Liu
0 siblings, 1 reply; 2+ messages in thread
From: Don Slutz @ 2020-08-09 18:22 UTC (permalink / raw)
To: xen-devel; +Cc: Ian Jackson, Don Slutz, Wei Liu
From: Don Slutz <Don.Slutz@Gmail.com>
Also prevent warning: directory /boot: remove failed
Before:
[root@TestCloud1 xen]# rpm -hiv dist/xen*rpm
Preparing... ################################# [100%]
file /boot from install of xen-4.15-unstable.x86_64 conflicts with file from package filesystem-3.2-25.el7.x86_64
file /usr/bin from install of xen-4.15-unstable.x86_64 conflicts with file from package filesystem-3.2-25.el7.x86_64
file /usr/lib from install of xen-4.15-unstable.x86_64 conflicts with file from package filesystem-3.2-25.el7.x86_64
file /usr/lib64 from install of xen-4.15-unstable.x86_64 conflicts with file from package filesystem-3.2-25.el7.x86_64
file /usr/sbin from install of xen-4.15-unstable.x86_64 conflicts with file from package filesystem-3.2-25.el7.x86_64
[root@TestCloud1 xen]# rpm -e xen
warning: directory /boot: remove failed: Device or resource busy
After:
[root@TestCloud1 xen]# rpm -hiv dist/xen*rpm
Preparing... ################################# [100%]
Updating / installing...
1:xen-4.15-unstable ################################# [100%]
[root@TestCloud1 xen]# rpm -e xen
[root@TestCloud1 xen]#
Signed-off-by: Don Slutz <Don.Slutz@Gmail.com>
---
tools/misc/mkrpm | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/tools/misc/mkrpm b/tools/misc/mkrpm
index ae40e1a..68819b2 100644
--- a/tools/misc/mkrpm
+++ b/tools/misc/mkrpm
@@ -62,7 +62,8 @@ rm -rf \$RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
-/*
+/*/*/*
+/boot/*
%post
EOF
--
1.8.3.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [XEN PATCH] rpmball: Adjust to new rpm, do not require --force
2020-08-09 18:22 [XEN PATCH] rpmball: Adjust to new rpm, do not require --force Don Slutz
@ 2020-08-14 15:23 ` Wei Liu
0 siblings, 0 replies; 2+ messages in thread
From: Wei Liu @ 2020-08-14 15:23 UTC (permalink / raw)
To: Don Slutz; +Cc: xen-devel, Ian Jackson, Wei Liu
On Sun, Aug 09, 2020 at 02:22:34PM -0400, Don Slutz wrote:
> From: Don Slutz <Don.Slutz@Gmail.com>
>
> Also prevent warning: directory /boot: remove failed
>
> Before:
>
> [root@TestCloud1 xen]# rpm -hiv dist/xen*rpm
> Preparing... ################################# [100%]
> file /boot from install of xen-4.15-unstable.x86_64 conflicts with file from package filesystem-3.2-25.el7.x86_64
> file /usr/bin from install of xen-4.15-unstable.x86_64 conflicts with file from package filesystem-3.2-25.el7.x86_64
> file /usr/lib from install of xen-4.15-unstable.x86_64 conflicts with file from package filesystem-3.2-25.el7.x86_64
> file /usr/lib64 from install of xen-4.15-unstable.x86_64 conflicts with file from package filesystem-3.2-25.el7.x86_64
> file /usr/sbin from install of xen-4.15-unstable.x86_64 conflicts with file from package filesystem-3.2-25.el7.x86_64
> [root@TestCloud1 xen]# rpm -e xen
> warning: directory /boot: remove failed: Device or resource busy
>
> After:
>
> [root@TestCloud1 xen]# rpm -hiv dist/xen*rpm
> Preparing... ################################# [100%]
> Updating / installing...
> 1:xen-4.15-unstable ################################# [100%]
> [root@TestCloud1 xen]# rpm -e xen
> [root@TestCloud1 xen]#
>
> Signed-off-by: Don Slutz <Don.Slutz@Gmail.com>
Acked-by: Wei Liu <wl@xen.org>
Since this is only a spec file for developers, I think the risk of
breaking things is minimal.
> ---
> tools/misc/mkrpm | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/tools/misc/mkrpm b/tools/misc/mkrpm
> index ae40e1a..68819b2 100644
> --- a/tools/misc/mkrpm
> +++ b/tools/misc/mkrpm
> @@ -62,7 +62,8 @@ rm -rf \$RPM_BUILD_ROOT
>
> %files
> %defattr(-,root,root,-)
> -/*
> +/*/*/*
> +/boot/*
>
> %post
> EOF
> --
> 1.8.3.1
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-08-14 15:23 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-09 18:22 [XEN PATCH] rpmball: Adjust to new rpm, do not require --force Don Slutz
2020-08-14 15:23 ` Wei Liu
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.