Package: fai
Version: 2.8.1
Severity: important
Tags: patch

* BUGFIX: don't mount $FAI on itself when doing softupdates
when $FAI_ROOT is /, $FAI was bind-mounted on itself, so the cleanup at the 
end of the fai-run failed

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

Versions of packages fai depends on:
ii  debconf                       1.4.30.13  Debian configuration management sy
ii  libapt-pkg-perl               0.1.13     Perl interface to libapt-pkg
ii  perl                          5.8.4-8    Larry Wall's Practical Extraction 
Tue May  3 18:11:51 CEST 2005  [EMAIL PROTECTED]
  * BUGFIX: don't mount $FAI on itself when doing softupdates
  when $FAI_ROOT is /, $FAI was bind-mounted on itself, so the cleanup at the 
  end of the fai-run failed
diff -rN -u old-pfai/share/subroutines-linux new-pfai/share/subroutines-linux
--- old-pfai/share/subroutines-linux    2005-05-03 18:32:25.557839000 +0200
+++ new-pfai/share/subroutines-linux    2005-05-03 18:11:19.000000000 +0200
@@ -143,7 +143,7 @@
     echo "Updating base"
     # try to mount the config space, since it can also contain Debian Packages
     # in /fai/files/packages 
-    mount --bind $FAI $FAI_ROOT/$FAI
+    [ "$FAI_ACTION" = "install" ] && mount --bind $FAI $FAI_ROOT/$FAI
     if [ "$debug" ]; then
        updatebase | tee -a $LOGDIR/updatebase.log 2>&1
     else

Reply via email to