[Fai-commit] r3266 - in people/lazyboy: fai-2.9-multidistribution/debian fai-dev-helpers fai-distributions fai-distributions/classes/UBUNTU/hooks

fai-repository at svn.debian.org fai-repository at svn.debian.org
Wed Jan 25 21:35:49 UTC 2006


Author: lazyboy-guest
Date: 2006-01-25 21:35:48 +0000 (Wed, 25 Jan 2006)
New Revision: 3266

Modified:
   people/lazyboy/fai-2.9-multidistribution/debian/changelog
   people/lazyboy/fai-dev-helpers/fai-dev-preparedevenv
   people/lazyboy/fai-distributions/README.multi-distribution
   people/lazyboy/fai-distributions/classes/UBUNTU/hooks/instsoft.UBUNTU
Log:
add some install and error hintsfai-distributions/README.multi-distribution

Modified: people/lazyboy/fai-2.9-multidistribution/debian/changelog
===================================================================
--- people/lazyboy/fai-2.9-multidistribution/debian/changelog	2006-01-23 21:23:14 UTC (rev 3265)
+++ people/lazyboy/fai-2.9-multidistribution/debian/changelog	2006-01-25 21:35:48 UTC (rev 3266)
@@ -1,3 +1,9 @@
+fai (2.9-multi-distribution-0.1-09) unstable; urgency=low
+
+  * fix stuff in class examples 
+
+ -- Henning Sprang <henning at sprang.de>  Mon, 23 Jan 2006 22:23:58 +0100
+
 fai (2.9-multi-distribution-0.1-08) unstable; urgency=low
 
   * fixing error for debian install 

Modified: people/lazyboy/fai-dev-helpers/fai-dev-preparedevenv
===================================================================
--- people/lazyboy/fai-dev-helpers/fai-dev-preparedevenv	2006-01-23 21:23:14 UTC (rev 3265)
+++ people/lazyboy/fai-dev-helpers/fai-dev-preparedevenv	2006-01-25 21:35:48 UTC (rev 3266)
@@ -1,14 +1,20 @@
 #!/bin/sh
 
-# stop when not run as root!
+# TODO:stop when not run as root!
 
+# or better hardcode those here, so everything is in one place first?
+# TODO: make 'this flexible so it can be used when
+# projects are only in /welt, also
+TEMPLATE_DIR=/welt/produktion/fai-devel/dev/chroot_templates/
+
+if ! [ -x $TEMPLATE_DIR ];then
+  echo "template dir $TEMPLATE_DIR not found -exiting"
+  exit 1
+fi
+
 # TODO: fill in create-base-sarge chroot code here?
 ~/bin/create-base-sarge-chroot chroot
 
-# TODO: put stuff in TEMPLATE_DIR
-# or better hardcode those here, so everything is in one place first?
-TEMPLATE_DIR=/hier/produktion/fai-devel/dev/chroot_templates/
-
 # copy/link the config files needed in chroot
 rm ./chroot/etc/apt/sources.list
 cp $TEMPLATE_DIR/sources.list ./chroot/etc/apt/sources.list

Modified: people/lazyboy/fai-distributions/README.multi-distribution
===================================================================
--- people/lazyboy/fai-distributions/README.multi-distribution	2006-01-23 21:23:14 UTC (rev 3265)
+++ people/lazyboy/fai-distributions/README.multi-distribution	2006-01-25 21:35:48 UTC (rev 3266)
@@ -23,8 +23,9 @@
   how to do that.
 * copy example classes as usual in FAI
 * copy additional example classes: 
-  cp -a /usr/share/doc/fai-doc/examples/classes/*/* /usr/local/share/fai/
-* there's some problem with non-executable hooks, do "chmod +x /usr/local/share/fai/hooks/*
+  cp -a /usr/share/doc/fai-distributions/classes/*/* /usr/local/share/fai/
+* there's some problem with non-executable hooks, do:
+  chmod +x /usr/local/share/fai/hooks/*
 * run make-fai-nfsroot
 * run /usr/lib/fai-distributions/dists/ubuntu_hoary/make-base-tgz ( in lib because it
   should be called from make-fai-nfsroot)
@@ -33,9 +34,25 @@
   just downloads a base system image. This task needs to be solved.
 * name your install clients sarge, hoary, and breezy, or mandriva in DNS , or add them to the same classes as these example host configurations and install 
   them as usual 
+* for mandriva, you need a mandriva mirror at the location specified in
+  files/etc/apt/sources.list/MANDRIVA and in /etc/fai/distributions
+* in general, check the config files in /etc/fai-distributions
+* for mandriva, I have no network suppport in my tests, until I manually add
+  the module for my card to the config - ubuntu and debian do that well
+* also for mandriva, the X config isn't working
 
 what doesn't work:
 * runs only on Debian sarge as server and is only tested on i386 architecture
 * only network install is tested - cd install is some more work to do.
 * not tested running on an Ubuntu server. also "normal" FAI has issues
   running on Ubuntu Linux.
+
+
+errata:
+* MANDRIVA: problem with grub menu.lst
+* UBuntu HOARY: does only work with an ubuntu mirror on
+  ftp://$mirrorhost/ubuntu"
+* Ubuntu hoary: does only work with modified instsoft.UBUNTU hook
+* FAI 2.9 general: /etc/fai/sources.list must have an entry to a repository
+  which has fai-nfsroot available
+  

Modified: people/lazyboy/fai-distributions/classes/UBUNTU/hooks/instsoft.UBUNTU
===================================================================
--- people/lazyboy/fai-distributions/classes/UBUNTU/hooks/instsoft.UBUNTU	2006-01-23 21:23:14 UTC (rev 3265)
+++ people/lazyboy/fai-distributions/classes/UBUNTU/hooks/instsoft.UBUNTU	2006-01-25 21:35:48 UTC (rev 3266)
@@ -49,3 +49,16 @@
 $ROOTCMD dpkg --update-avail $tmp
 rm -f $FAI_ROOT/$tmp
 
+
+
+echo "Installing software may take a while"
+if [ "$debug" ]; then
+    install_packages | tee -a $LOGDIR/software.log
+elif [ "$verbose" ]; then
+    install_packages </dev/null 2>&1 | tee -a $LOGDIR/software.log
+else
+    install_packages </dev/null >> $LOGDIR/software.log 2>&1
+fi
+# This almost indicates an error
+egrep "^E:" $LOGDIR/software.log && terror=1
+




More information about the Fai-commit mailing list