Package: fai
Version: 2.8.4
Followup-For: Bug #312128

* 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

-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.11.10-xen0
Locale: LANG=C, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)

Versions of packages fai depends on:
ii  libapt-pkg-perl               0.1.13     Perl interface to libapt-pkg
ii  perl                          5.8.4-8    Larry Wall's Practical Extraction 
Mon Jun  6 18:29:58 CEST 2005  [EMAIL PROTECTED]
  * 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
  
diff -rN -u old-pfai/lib/create_ramdisk new-pfai/lib/create_ramdisk
--- old-pfai/lib/create_ramdisk 2005-06-06 18:42:17.752878000 +0200
+++ new-pfai/lib/create_ramdisk 2005-06-06 18:26:51.000000000 +0200
@@ -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

Reply via email to