aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig
diff options
context:
space:
mode:
authorWill Woods <wwoods@redhat.com>2012-03-08 15:13:02 -0500
committerBill Nottingham <notting@redhat.com>2012-03-09 13:07:24 -0500
commit8e42a26032834a5c621e05fc14103611906fca87 (patch)
tree227bb4508e454b16adb05e8434d0c67a9006aa0b /sysconfig
parent8f1eaa8c4ba7c26a5f3466147381e931f456b4d2 (diff)
downloadinitscripts-8e42a26032834a5c621e05fc14103611906fca87.tar
initscripts-8e42a26032834a5c621e05fc14103611906fca87.tar.gz
initscripts-8e42a26032834a5c621e05fc14103611906fca87.tar.bz2
initscripts-8e42a26032834a5c621e05fc14103611906fca87.tar.xz
initscripts-8e42a26032834a5c621e05fc14103611906fca87.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')
-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 de6add11..7058852f 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