Package: fai Severity: normal Tags: patch
When mounting a local mirror FAI adds an extra slash to the path, which made the mount fail for me. Here is a patch that fixes the issue. Diego -- System Information: Debian Release: 4.0 APT prefers unstable APT policy: (500, 'unstable') Architecture: powerpc (ppc) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.21 Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Index: lib/subroutines-linux =================================================================== --- lib/subroutines-linux (revision 4347) +++ lib/subroutines-linux (working copy) @@ -151,9 +151,9 @@ # mount debian mirror directory [ "$FAI_DEBMIRROR" ] || return # nothing to do - mkdir -p $FAI_ROOT/$MNTPOINT - if mount $romountopt $FAI_DEBMIRROR $FAI_ROOT/$MNTPOINT; then - [ "$debug" ] && echo "Mirror mounted from $FAI_DEBMIRROR to $FAI_ROOT/$MNTPOINT" + mkdir -p ${FAI_ROOT}${MNTPOINT} + if mount $romountopt $FAI_DEBMIRROR ${FAI_ROOT}${MNTPOINT}; then + [ "$debug" ] && echo "Mirror mounted from $FAI_DEBMIRROR to ${FAI_ROOT}${MNTPOINT}" else sendmon "TASKERROR mirror $?" die "Can't mount $FAI_DEBMIRROR"