]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
More runtime files to /tmp
authorDavid Dillow <dave@thedillows.org>
Thu, 28 May 2009 02:54:03 +0000 (22:54 -0400)
committerWarren Togami <wtogami@redhat.com>
Thu, 28 May 2009 02:54:03 +0000 (22:54 -0400)
modules.d/40network/dhclient-script
modules.d/40network/ifup

index ff03462ce75d4087a598d5b4ddf099ef2013771c..1ee78fe40a27c61a7a9b05ebf19c5abd1a42632d 100755 (executable)
@@ -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
     }
     :
 }
index 45106b9609ae8126bea43192b5f2428dfdb692df..ee4bc4aa0314013fadb1bf02ecf80aee14e508b7 100755 (executable)
@@ -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" ] &&