Package: fai-server Version: 3.2.1 Severity: wish Tags: patch In (k)ubuntu /proc is not mounted at the time when $start_seconds in fai is initialized. I've moved it right after the first mount-proc-if-not-mounted check.
Would be nice if this or a similar fix could be applied to debian too. Thx for consideration, Achim -- System Information: Debian Release: lenny/sid APT prefers gutsy-updates APT policy: (500, 'gutsy-updates'), (500, 'gutsy-security'), (500, 'gutsy') Architecture: i386 (i686) Kernel: Linux 2.6.22-12-generic (SMP w/2 CPU cores) Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash
=== modified file 'bin/fai' --- bin/fai 2007-09-25 22:14:40 +0000 +++ bin/fai 2007-09-26 00:02:34 +0000 @@ -45,6 +45,7 @@ if [ ! -f /proc/version ]; then mount -t proc proc /proc fi + export start_seconds=$(cut -d . -f 1 /proc/uptime) umask 022 if [ ! -d "$FAI_ETC_DIR" ]; then @@ -251,7 +252,6 @@ renewclass=1 # always renew class list when installing mkdir -p /var/lib/discover /var/discover /etc/sysconfig fi -export start_seconds=$(cut -d . -f 1 /proc/uptime) if [ X$action = Xdirinstall -a -n "$newhostname" ]; then export HOSTNAME=$newhostname === modified file 'debian/changelog' --- debian/changelog 2007-09-25 23:46:50 +0000 +++ debian/changelog 2007-09-26 00:02:34 +0000 @@ -11,6 +11,8 @@ * make-fai-nfsroot: mount devpts and reorder umounts so umount of devpts is working. * lib/subroutines*: replace bashism $[...] with $(expr ...) + * bin/fai: move initialization of $start_seconds to fai_init(): There + we can be sure that /proc is mounted. -- Achim Bohnet <[EMAIL PROTECTED]> Wed, 26 Sep 2007 01:05:19 +0200