e8910538de
(1)Release Version Upgrade (2)Matching code changes with el7 to el8 Story: 2006729 Task: 37669 Depends-On: https://review.opendev.org/#/c/696481/ Depends-On: https://review.opendev.org/#/c/696050/ Change-Id: I085c40a52d94ca38f63f2ff98db74149b750f922 Signed-off-by: Dongqi Chen <chen.dq@neusoft.com>
32 lines
1013 B
Diff
32 lines
1013 B
Diff
From 6a3a3047ad47570ccdb9b758c8417a66447be697 Mon Sep 17 00:00:00 2001
|
|
From: Scott Little <scott.little@windriver.com>
|
|
Date: Thu, 5 Oct 2017 12:31:18 -0400
|
|
Subject: [PATCH 2/9] relocate-dhclient-leases-to-var-run.patch
|
|
|
|
Signed-off-by: Dongqi Chen <chen.dq@neusoft.com>
|
|
---
|
|
network-scripts/network-functions | 4 ++--
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/network-scripts/network-functions b/network-scripts/network-functions
|
|
index 1867c38..080101b 100644
|
|
--- a/network-scripts/network-functions
|
|
+++ b/network-scripts/network-functions
|
|
@@ -65,11 +65,11 @@ get_uuid_by_config ()
|
|
generate_lease_file_name ()
|
|
{
|
|
local ver=$1
|
|
- LEASEFILE="/var/lib/dhclient/dhclient$ver-${DEVICE}.leases"
|
|
+ LEASEFILE="/var/run/dhclient$ver-${DEVICE}.leases"
|
|
if [ -f $LEASEFILE ]; then
|
|
return
|
|
fi
|
|
- LEASEFILE="/var/lib/dhclient/dhclient$ver-${UUID}-${DEVICE}.lease"
|
|
+ LEASEFILE="/var/run/dhclient$ver-${UUID}-${DEVICE}.lease"
|
|
}
|
|
|
|
generate_config_file_name ()
|
|
--
|
|
1.8.3.1
|
|
|