Compare commits
4 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| 5f0c33cf0c | |||
| 1d9e0bd9df | |||
| 536e38fa4e | |||
| ce7163b736 |
@@ -1,13 +1,13 @@
|
||||
%update_bootloader_requires %{nil}
|
||||
%update_bootloader_requires %nil
|
||||
|
||||
%update_bootloader_refresh_post() \
|
||||
mkdir -p %{_rundir}/update-bootloader/ \
|
||||
touch %{_rundir}/update-bootloader/refresh \
|
||||
! command -v mkdir >/dev/null || mkdir -p %{_rundir}/update-bootloader \
|
||||
[ ! -d %{_rundir}/update-bootloader ] || > %{_rundir}/update-bootloader/refresh \
|
||||
%nil
|
||||
|
||||
%update_bootloader_reinit_post() \
|
||||
mkdir -p %{_rundir}/update-bootloader/ \
|
||||
touch %{_rundir}/update-bootloader/reinit \
|
||||
! command -v mkdir >/dev/null || mkdir -p %{_rundir}/update-bootloader \
|
||||
[ ! -d %{_rundir}/update-bootloader ] || > %{_rundir}/update-bootloader/reinit \
|
||||
%nil
|
||||
|
||||
%update_bootloader_check_type_refresh_post() \
|
||||
@@ -17,8 +17,8 @@ loader_type=`sed -n \\\
|
||||
2>/dev/null || :` \
|
||||
for bl in %{?*}; do \
|
||||
if test "x${bl}" = "x$loader_type" ; then \
|
||||
mkdir -p %{_rundir}/update-bootloader/ \
|
||||
touch %{_rundir}/update-bootloader/refresh \
|
||||
! command -v mkdir >/dev/null || mkdir -p %{_rundir}/update-bootloader \
|
||||
[ ! -d %{_rundir}/update-bootloader ] || > %{_rundir}/update-bootloader/refresh \
|
||||
break \
|
||||
fi \
|
||||
done \
|
||||
@@ -31,8 +31,8 @@ loader_type=`sed -n \\\
|
||||
2>/dev/null || :` \
|
||||
for bl in %{?*}; do \
|
||||
if test "x${bl}" = "x$loader_type" ; then \
|
||||
mkdir -p %{_rundir}/update-bootloader/ \
|
||||
touch %{_rundir}/update-bootloader/reinit \
|
||||
! command -v mkdir >/dev/null || mkdir -p %{_rundir}/update-bootloader \
|
||||
[ ! -d %{_rundir}/update-bootloader ] || > %{_rundir}/update-bootloader/reinit \
|
||||
break \
|
||||
fi \
|
||||
done \
|
||||
|
||||
@@ -1,3 +1,17 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Mar 4 07:53:38 UTC 2024 - Michael Chang <mchang@suse.com>
|
||||
|
||||
- Remove coreutils from the %update_bootloader_requires (bsc#1218241)
|
||||
- Make mkdir optional if it is not available, this is non-fatal because that
|
||||
generally indicates update-bootloader can be ignored due to missing coreutils
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Dec 12 09:54:44 UTC 2023 - Giacomo Comes <gcomes.obs@gmail.com>
|
||||
|
||||
- add Requires(post): coreutils to the macro %update_bootloader_requires
|
||||
* the post scriptlets use the commands mkdir and touch which would fail
|
||||
if coreutils is not installed
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Aug 15 19:07:05 UTC 2022 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package update-bootloader-rpm-macros
|
||||
#
|
||||
# Copyright (c) 2022 SUSE LLC
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
|
||||
Reference in New Issue
Block a user