tags 439101 + patch
thanks

The attached patch is supposed to fix this issue and includes a bugfix for the
documentation as well, which is the last remaining occurrence of the wrong
/boot/RUNNING_FROM_FAICD.

Best,
Michael

2008-09-05  Michael Tautschnig  <[EMAIL PROTECTED]>

        * lib/subroutines: Proper location of RUNNING_FROM_FAICD to make eject 
work
        * doc/fai-guide.sgml: Updated location of RUNNING_FROM_FAICD as well
Index: trunk/lib/subroutines
===================================================================
--- trunk.orig/lib/subroutines
+++ trunk/lib/subroutines       
@@ -437,7 +437,7 @@
     sync
 
     killall -q sshd udevd
-    if [ -f /boot/RUNNING_FROM_FAICD ]; then
+    if [ -f /etc/RUNNING_FROM_FAICD ]; then
        cat > $target/tmp/rebootCD <<'EOF'
 #! /bin/bash
  device=$1
Index: trunk/doc/fai-guide.sgml
===================================================================
--- trunk.orig/doc/fai-guide.sgml
+++ trunk/doc/fai-guide.sgml    
@@ -1752,7 +1752,7 @@
 uname -s | tr '[:lower:]' '[:upper:]'
 dpkg --print-installation-architecture | tr /a-z/ /A-Z/
 
-[ -f /boot/RUNNING_FROM_FAICD ] && echo "FAICD"
+[ -f /etc/RUNNING_FROM_FAICD ] && echo "FAICD"
 
 # use a list of classes for our demo machine
 case $HOSTNAME in

Attachment: pgpdk78Qc2dv6.pgp
Description: PGP signature

Reply via email to