From: David Dillow Date: Thu, 28 May 2009 02:54:03 +0000 (-0400) Subject: More runtime files to /tmp X-Git-Tag: 0.1~162 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=aa43d0b0df2b5f7e9d9990fe3d891d4789ede58f;p=thirdparty%2Fdracut.git More runtime files to /tmp --- diff --git a/modules.d/40network/dhclient-script b/modules.d/40network/dhclient-script index ff03462ce..1ee78fe40 100755 --- a/modules.d/40network/dhclient-script +++ b/modules.d/40network/dhclient-script @@ -61,8 +61,8 @@ setup_interface() { echo nameserver $s >> /etc/resolv.conf done } - [ -e /hostname.set ] || { - [ -n "$hostname" ] && mknod /hostname.set p && run hostname $hostname + [ -e /tmp/hostname.set ] || { + [ -n "$hostname" ] && mknod /tmp/hostname.set p && run hostname $hostname } : } diff --git a/modules.d/40network/ifup b/modules.d/40network/ifup index 45106b960..ee4bc4aa0 100755 --- a/modules.d/40network/ifup +++ b/modules.d/40network/ifup @@ -5,8 +5,8 @@ PATH=$PATH:/sbin:/usr/sbin . /lib/dracut-lib getarg rdnetdebug && { - exec >/ifup.$1.$$.out - exec 2>>/ifup.$1.$$.out + exec >/tmp/ifup.$1.$$.out + exec 2>>/tmp/ifup.$1.$$.out set -x } @@ -44,8 +44,8 @@ do_static() { die "static: setting default route via $gw" } ip link set $netif up - [ -e /hostname.set ] || { - [ -n "$hostname" ] && mknod /hostname.set p 2>/dev/null && + [ -e /tmp/hostname.set ] || { + [ -n "$hostname" ] && mknod /tmp/hostname.set p 2>/dev/null && hostname $hostname } [ -n "$srv" ] &&