diff options
author | Peter Jones <pjones@redhat.com> | 2007-01-18 23:20:37 +0000 |
---|---|---|
committer | Peter Jones <pjones@redhat.com> | 2007-01-18 23:20:37 +0000 |
commit | 575a80dd1442dceee78282b6f7f4d562754d9e83 (patch) | |
tree | d50efbd008de42c5887a808eb4295d06b045057e /rc.d | |
parent | 760d0f06c2d5804154ffd331deaddf05f95ac313 (diff) | |
download | initscripts-575a80dd1442dceee78282b6f7f4d562754d9e83.tar initscripts-575a80dd1442dceee78282b6f7f4d562754d9e83.tar.gz initscripts-575a80dd1442dceee78282b6f7f4d562754d9e83.tar.bz2 initscripts-575a80dd1442dceee78282b6f7f4d562754d9e83.tar.xz initscripts-575a80dd1442dceee78282b6f7f4d562754d9e83.zip |
- copy dhclient lease files from the initrd into /var/lib/dhclient sor8-45-15-EL
the network doesn't get reset during startup with iscsi /
Resolves: #218791
Diffstat (limited to 'rc.d')
-rwxr-xr-x | rc.d/rc.sysinit | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit index 0ae5b1f9..bcbc9ce4 100755 --- a/rc.d/rc.sysinit +++ b/rc.d/rc.sysinit @@ -701,9 +701,14 @@ state=`LC_ALL=C awk '/ \/ / && ($3 !~ /rootfs/) { print $4 }' /proc/mounts` [ "$state" != "rw" -a "$READONLY" != "yes" ] && \ action $"Remounting root filesystem in read-write mode: " mount -n -o remount,rw / +for lease in /dev/.dhclient* ; do + leasebase=$(basename $lease) + mv $lease /var/lib/dhclient/${leasebase##.} +done + # Clean up SELinux labels if [ -n "$SELINUX_STATE" ]; then - restorecon /etc/mtab /etc/ld.so.cache /etc/blkid/blkid.tab /etc/resolv.conf >/dev/null 2>&1 + restorecon /etc/mtab /etc/ld.so.cache /etc/blkid/blkid.tab /etc/resolv.conf /var/lib/dhclient/ /var/lib/dhclient/* >/dev/null 2>&1 fi # Clear mtab |