On Sun, Feb 08, 2009 at 05:11:07PM +0100, Juan Jose Pablos wrote:
> Renault Lionel escribió:
> > 
> > hello,
> > 
> > you can also change /var/run in the master file with /tmp
> > 
> > but also remove cardmgr no longer used
> > 
> done.

There are a couple of other places this needed to change too since /var/run is 
not necessarily writable.  linuxboot/misc/master and 
linuxboot/misc/udhcpc-script also have this.

The included patch should fix it.

Allan.
Index: linuxboot/misc/master
===================================================================
RCS file: /cvsroot/unattended/unattended/linuxboot/misc/master,v
retrieving revision 1.60
diff -u -r1.60 master
--- linuxboot/misc/master	8 Feb 2009 16:10:35 -0000	1.60
+++ linuxboot/misc/master	13 Feb 2009 18:44:40 -0000
@@ -149,8 +149,8 @@
 
 # Having obtained a lease, read its info.  In particular, here we set
 # "unattend" to the value from local DHCP option 233.
-[ -f /var/run/dhcp.out ] \
-    && . /var/run/dhcp.out
+[ -f /tmp/dhcp.out ] \
+    && . /tmp/dhcp.out
 
 # Configure the keyboard again, in case it was provided via DHCP.
 kbd=$(get_cmdline_param kbd)
Index: linuxboot/misc/udhcpc-script
===================================================================
RCS file: /cvsroot/unattended/unattended/linuxboot/misc/udhcpc-script,v
retrieving revision 1.6
diff -u -r1.6 udhcpc-script
--- linuxboot/misc/udhcpc-script	29 Aug 2004 19:45:12 -0000	1.6
+++ linuxboot/misc/udhcpc-script	13 Feb 2009 18:44:40 -0000
@@ -31,14 +31,14 @@
         # Set our hostname if DHCP provided it
         [ -n "$hostname" ] && hostname "$hostname"
 
-        # Create /var/run/dhcp.out
-        dhcp_out=/var/run/dhcp.out
+        # Create /tmp/dhcp.out
+        dhcp_out=/tmp/dhcp.out
         echo "interface=$interface" >| $dhcp_out.tmp
         echo "ip=$ip" >> $dhcp_out.tmp
         [ -n "$unattend" ] \
             && echo "unattend='$unattend'" >> $dhcp_out.tmp
         mv $dhcp_out.tmp $dhcp_out
-        # set > /var/run/dhcp-set.out   # for debugging
+        # set > /tmp/dhcp-set.out   # for debugging
         ;;
     renew)
         echo "$0: ERROR: RENEW NOT IMPLEMENTED" >&2
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
unattended-devel mailing list
unattended-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/unattended-devel

Reply via email to