Compare commits

...

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
fa210a1ad9
!36 [sync] PR-34: Adjust commands sequence
From: @openeuler-sync-bot 
Reviewed-by: @shenyangyang01 
Signed-off-by: @shenyangyang01
2025-01-16 07:08:24 +00:00
zhangyao
ba4f5d04f0 Adjust commands sequence
(cherry picked from commit ed2e69cee2e1d1271a012e9f1faa614893ad0668)
2025-01-14 11:56:10 +08:00
openeuler-ci-bot
c033af094b !14 Update setup to 2.13.9.1
From: @jlwwlsqc
Reviewed-by: @licunlong,@openeuler-basic
Signed-off-by: @licunlong,@openeuler-basic
2021-12-07 06:27:01 +00:00
renmingshuai
d8c0eaeda5 Update setup to 2.13.9.1 2021-11-30 15:19:53 +08:00
openeuler-ci-bot
e35e1ff6fc !13 Update setup to 2.13.8
From: @zou_lin77
Reviewed-by: @overweight
Signed-off-by: @overweight
2021-06-29 06:50:28 +00:00
zou_lin77
1a99bc83a2 Update setup to 2.13.8 2021-06-26 11:55:11 +08:00
openeuler-ci-bot
1471461763 !9 Add systemd to BuildRequires to use _tmpfilesdir macro
From: @panxh_purple
Reviewed-by: @overweight
Signed-off-by: @overweight
2021-05-28 17:01:55 +08:00
panxiaohe
c5b3a18bf2 Add systemd to BuildRequires to use _tmpfilesdir macro 2021-05-28 15:05:14 +08:00
openeuler-ci-bot
ae1c4061e8 !6 Add bc and systemd to BuildRequires
From: @panxh_purple
Reviewed-by: @overweight
Signed-off-by: @overweight
2021-05-27 18:51:02 +08:00
panxiaohe
6e0a3d9241 Add bc and systemd to BuildRequires 2021-05-27 17:34:06 +08:00
3 changed files with 55 additions and 2 deletions

View File

@ -0,0 +1,30 @@
From 197d01359b386165ac61aa26c25f8ccc12410152 Mon Sep 17 00:00:00 2001
From: wx913462 <wangchen137@h-partners.com>
Date: Mon, 25 Apr 2022 09:29:41 +0800
Subject: [PATCH] Adjust commands sequence
Prefer hostname and uname commands to avoid time consuming in
hostnamectl.
---
profile | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/profile b/profile
index 542add4..5a3ec3c 100644
--- a/profile
+++ b/profile
@@ -42,9 +42,9 @@ else
pathmunge /usr/sbin after
fi
-HOSTNAME=$(/usr/bin/hostnamectl --transient 2>/dev/null) || \
HOSTNAME=$(/usr/bin/hostname 2>/dev/null) || \
-HOSTNAME=$(/usr/bin/uname -n)
+HOSTNAME=$(/usr/bin/uname -n 2>/dev/null) || \
+HOSTNAME=$(/usr/bin/hostnamectl --transient 2>/dev/null) || echo "System commands: hostname uname and hostnamectl, which do not exist."
HISTSIZE=1000
if [ "$HISTCONTROL" = "ignorespace" ] ; then
--
2.27.0

View File

@ -1,14 +1,16 @@
Summary: A set of system configuration and setup files
Name: setup
Version: 2.13.7
Release: 1
Version: 2.13.9.1
Release: 2
License: Public Domain
Group: System Environment/Base
URL: https://pagure.io/setup/
Source0: http://releases.pagure.org/%{name}/%{name}-%{version}.tar.bz2
Patch0: support-filesystems-xfs.patch
Patch1: source-cshlocal-when-login.patch
Patch2: Adjust-commands-sequence.patch
BuildArch: noarch
BuildRequires: systemd
BuildRequires: bash tcsh perl-interpreter
#require system release for saner dependency order
Requires: system-release
@ -116,6 +118,27 @@ end
%{_tmpfilesdir}/%{name}.conf
%changelog
* Tue Jan 14 2025 zhangyao <zhangyao108@huawei.com> - 2.13.9.1-2
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:Adjust commands sequence
* Tue Nov 30 2021 wangjie <wangjie375@huawei.com> - 2.13.9.1-1
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:Update setup to 2.13.9.1
* Sat Jun 26 2021 zoulin <zoulin13@huawei.com> - 2.13.8-1
- Type:enhancement
- ID:NA
- SUG:restart
- DESC:Update setup to 2.13.8
* Fri May 28 2021 panxiaohe <panxiaohe@huawei.com> - 2.13.7-2
- Add systemd to BuildRequires to use _tmpfilesdir macro
* Mon Jul 27 2020 linwei <linwei54@huawei.com> - 2.13.7-1
- Type:enhancement
- ID:NA