[Fai-commit] r2993 - people/eartoast/bugfix/312128/lib

fai-repository at svn.debian.org fai-repository at svn.debian.org
Fri Nov 4 08:40:51 UTC 2005


Author: glaweh-guest
Date: 2005-11-04 08:40:50 +0000 (Fri, 04 Nov 2005)
New Revision: 2993

Modified:
   people/eartoast/bugfix/312128/lib/create_ramdisk
Log:
* BUGFIX: #312128, work around changed ifupdown
ifupdown was changed: instead of the file /etc/network/ifstate it uses 
/etc/network/run/ifstate, while /etc/network/run is a symlink to /dev/shm/network.
this fails, of cause, in the FAI nfsroot.
quick workaround: bind-mount /tmp to /dev/shm and create the directory 
/dev/shm/network/ in lib/create_ramdisk


Modified: people/eartoast/bugfix/312128/lib/create_ramdisk
===================================================================
--- people/eartoast/bugfix/312128/lib/create_ramdisk	2005-11-04 08:31:36 UTC (rev 2992)
+++ people/eartoast/bugfix/312128/lib/create_ramdisk	2005-11-04 08:40:50 UTC (rev 2993)
@@ -16,6 +16,7 @@
     mke2fs -q -m 0 $ramdevice && echo "ramdisk $ramdevice created"
     mount -n $ramdevice /tmp
 }
+mount --bind /tmp /dev/shm
 # now create the required subdirectories
-mkdir -p /tmp/etc /tmp/target /tmp/var/run/sshd /tmp/var/run/fai /tmp/var/state/discover /tmp/var/lib/discover
+mkdir -p /tmp/etc /tmp/target /tmp/var/run/sshd /tmp/var/run/fai /tmp/var/state/discover /tmp/var/lib/discover /dev/shm/network
 cd    /tmp/var && mkdir tmp log lock spool




More information about the Fai-commit mailing list