Compare commits
10 Commits
2cc0a79c82
...
fa210a1ad9
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fa210a1ad9 | ||
|
|
ba4f5d04f0 | ||
|
|
c033af094b | ||
|
|
d8c0eaeda5 | ||
|
|
e35e1ff6fc | ||
|
|
1a99bc83a2 | ||
|
|
1471461763 | ||
|
|
c5b3a18bf2 | ||
|
|
ae1c4061e8 | ||
|
|
6e0a3d9241 |
30
Adjust-commands-sequence.patch
Normal file
30
Adjust-commands-sequence.patch
Normal 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
|
||||||
|
|
||||||
Binary file not shown.
27
setup.spec
27
setup.spec
@ -1,14 +1,16 @@
|
|||||||
Summary: A set of system configuration and setup files
|
Summary: A set of system configuration and setup files
|
||||||
Name: setup
|
Name: setup
|
||||||
Version: 2.13.7
|
Version: 2.13.9.1
|
||||||
Release: 1
|
Release: 2
|
||||||
License: Public Domain
|
License: Public Domain
|
||||||
Group: System Environment/Base
|
Group: System Environment/Base
|
||||||
URL: https://pagure.io/setup/
|
URL: https://pagure.io/setup/
|
||||||
Source0: http://releases.pagure.org/%{name}/%{name}-%{version}.tar.bz2
|
Source0: http://releases.pagure.org/%{name}/%{name}-%{version}.tar.bz2
|
||||||
Patch0: support-filesystems-xfs.patch
|
Patch0: support-filesystems-xfs.patch
|
||||||
Patch1: source-cshlocal-when-login.patch
|
Patch1: source-cshlocal-when-login.patch
|
||||||
|
Patch2: Adjust-commands-sequence.patch
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
BuildRequires: systemd
|
||||||
BuildRequires: bash tcsh perl-interpreter
|
BuildRequires: bash tcsh perl-interpreter
|
||||||
#require system release for saner dependency order
|
#require system release for saner dependency order
|
||||||
Requires: system-release
|
Requires: system-release
|
||||||
@ -116,6 +118,27 @@ end
|
|||||||
%{_tmpfilesdir}/%{name}.conf
|
%{_tmpfilesdir}/%{name}.conf
|
||||||
|
|
||||||
%changelog
|
%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
|
* Mon Jul 27 2020 linwei <linwei54@huawei.com> - 2.13.7-1
|
||||||
- Type:enhancement
|
- Type:enhancement
|
||||||
- ID:NA
|
- ID:NA
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user