Package: fai
Version: random lots of bugs
Severity: normal

Hi,

This is just me putting lots of little issues into a bugreport.

1. I couldn't work out what the original error was on about; this is
clearer:

--- subroutines-linux.orig      2006-01-06 12:29:32.000000000 +1100
+++ subroutines-linux   2006-01-09 13:47:24.000000000 +1100
@@ -73,20 +73,34 @@
        echo "Monitoring to server $monserver enabled."
     else
        faimond=0
-       echo "Can't connect daemon on $monserver. Monitoring disabled."
+       echo "Can't connect to monserver on $monserver port 4711.
Monitoring disabled."
     fi
 }


2. Document (somewhere) how to turn off colour

touch $FAINFSROOT/.nocolorlogo (also document it is American and not
English)

3. please use consistent variable in various programs

/usr/sbin/fai refers to $diskvar ($LOGDIR/disk_var.sh)

/usr/sbin/fai then calls 'set_disk_info'

/usr/lib/fai/subroutines-linux calls 'set_disk_info' but internally
refers to $(disk-info) and $diskvar

/usr/sbin/setup_harddisk call it '$FAIOutputFile' which made tracking it
down substanially more difficult

4. It'd be nice if you could include a 'be nice to Xen' option

this would:
        - mv /lib/tls /lib/tls.disabled after construction of the NFS
          root (and/or after upgrades)
        - perhaps generate the /etc/fstab and $LOGDIR/disk_var.sh files
          from the passed in command line; for the moment I do:
     echo "Partitioning local harddisks"
-    [ ! -s $diskvar ] && setup_harddisks -d -X | tee $LOGDIR/format.log
     2>&1
+    #[ ! -s $diskvar ] && setup_harddisks -d -X | tee
$LOGDIR/format.log 2>&1
     # setup_harddisks must create $diskvar file
-    if [ ! -s $diskvar ]; then
-       cat $LOGDIR/format.log
-       sndmon "TASKERROR partition 21"
-       die "setup_harddisks did not create $diskvar file."
-    fi
+    #if [ ! -s $diskvar ]; then
+#      cat $LOGDIR/format.log
+#      sndmon "TASKERROR partition 21"
+#      die "setup_harddisks did not create $diskvar file."
+#    fi
+# For Xen, define things ourselves
+echo "BOOT_DEVICE=/dev/hda" >> $diskvar
+echo "ROOT_PARTITION=/dev/hda1" >> $diskvar
+echo "BOOT_PARTITION=/dev/hda1" >> $diskvar
+echo "SWAPLIST=/dev/hda2" >> $diskvar
+# For Xen, we also need to write out the fstab
+
+echo "# /etc/fstab: static file system information." >> $LOGDIR/fstab
+echo "#" >> $LOGDIR/fstab
+echo "#<file sys>          <mount point>     <type>   <options> <dump>   
<pass>" >> $LOGDIR/fstab
+echo "/dev/hda1       /               ext3 defaults,errors=remount-ro 0 1" >> 
$LOGDIR/fstab
+echo "/dev/hda2       none            swap    sw              0 0" >> 
$LOGDIR/fstab
+echo "proc            /proc           proc    defaults        0 0" >> 
$LOGDIR/fstab

5. note that scripts have to be executable

6. note that scripts are actually pulled into 'fai-do-script' via a
source

7. note that if they want to use 'ifclass' they should also:

'. /usr/lib/fai/subroutines'
 
perhaps 'ifclass' should be a seperate binary?


Thats all for now -- while it may sound like I'm being overly harsh on
you -- I've only just started using FAI.

Cheers,
Anand

-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (650, 'testing'), (600, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.15
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8)


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to