aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts/ifup-eth
diff options
context:
space:
mode:
authorWill Woods <wwoods@redhat.com>2012-03-08 15:13:02 -0500
committerBill Nottingham <notting@redhat.com>2012-03-08 15:31:42 -0500
commita93d20bb3604bed86e3d1bb74513e428b21242cd (patch)
tree678d5fa1150ffe266065c3edd09faba397beb22e /sysconfig/network-scripts/ifup-eth
parent5cf9796c2334898b908e91810e03552688bb690c (diff)
downloadinitscripts-a93d20bb3604bed86e3d1bb74513e428b21242cd.tar
initscripts-a93d20bb3604bed86e3d1bb74513e428b21242cd.tar.gz
initscripts-a93d20bb3604bed86e3d1bb74513e428b21242cd.tar.bz2
initscripts-a93d20bb3604bed86e3d1bb74513e428b21242cd.tar.xz
initscripts-a93d20bb3604bed86e3d1bb74513e428b21242cd.zip
Use /run/initramfs instead of /dev/.initramfs
Current dracut saves state to /run/initramfs, since /run is standard now. This patch makes rc.sysinit and fedora-readonly check for files in /run/initramfs/rwtab and /run/initramfs/state (which is where dracut writes them). It also makes ifup-eth look for lease files in /run/initramfs.
Diffstat (limited to 'sysconfig/network-scripts/ifup-eth')
-rwxr-xr-xsysconfig/network-scripts/ifup-eth2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysconfig/network-scripts/ifup-eth b/sysconfig/network-scripts/ifup-eth
index 5d2cff5c..3037941e 100755
--- a/sysconfig/network-scripts/ifup-eth
+++ b/sysconfig/network-scripts/ifup-eth
@@ -193,7 +193,7 @@ if [ -n "${DYNCONFIG}" ] && [ -x /sbin/dhclient ]; then
DHCLIENTCONF='';
fi;
# copy any lease obtained by the initrd
- for file in /dev/.dhclient-${DEVICE}.leases /dev/.initramfs/net.${DEVICE}.lease /run/initramfs/net.${DEVICE}.lease; do
+ for file in /run/initramfs/net.${DEVICE}.lease; do
if [ -f "${file}" ]; then
mv -f $file /var/lib/dhclient/dhclient-${DEVICE}.leases
[ -x /sbin/restorecon ] && restorecon /var/lib/dhclient/dhclient-${DEVICE}.leases > /dev/null 2>&1