Hi Waldemar, one short question, did you change export UNIONTYPE="aufs" in live.conf to unionfs?
Regards, \sh On Wed, 11 Nov 2009 19:03:22 +0100 Waldemar Brodkorb <f...@waldemar-brodkorb.de> wrote: > Hi Developers, > > after a successful workshop with Thomas, I would like to sent some > hints and patches for getting FAI working on Ubuntu/karmic to > install Ubuntu/karmic. > > I've checkout the latest subversion of fai: > svn co svn://svn.debian.org/svn/fai/trunk fai-sources > > After applying the attached patches (fai-ubuntu-control.patch, > fai-ubuntu-upstart.patch) you can successfully build and install the > fai packages: > > $ cd fai-sources > $ dpkg-buildpackage > $ cd .. > $ sudo dpkg -i fai-quickstart_3.3_all.deb fai-doc_3.3_all.deb > fai-server_3.3_all.deb > > In Ubuntu there is no package with the name "syslinux-common", the > package name here is "syslinux". > > Ubuntu switched to upstart as init replacement, so we need to start > the main fai script via upstart. In the patch I check the > environment variable UPSTART_JOB, if fai is called via upstart init > application. > > After that you can create a new /etc/fai-karmic directory and modify > the configuration to match Ubuntu package names. See > fai-ubuntu-NFSROOT.patch as example. Here we have used unionfs-fuse > instead of aufs2. Ubuntu removed the aufs2 binary packages in > Karmic. > > After that I've setup a local repository with the fai packages for > the installation and client system: > > # mkdir -p /srv/www/fai/ > # cp fai-client_3.3_all.deb fai-nfsroot_3.3_all.deb /srv/www/fai/ > # cd /srv/www/fai > # dpkg-scanpackages . /dev/null |gzip -v9 > Packages.gz > > My apache DocumentRoot is /srv/www. My /etc/fai/apt/sources.list > contains following line for the local repository: > deb http://10.1.1.1/fai/ ./ > > The next step is to call fai-setup: > > # fai-setup -C /etc/fai-karmic -v > > If this successfully creates a nfsroot, you need to manually > configure upstart: (should I create a patch for make-fai-nfsroot?) > > # chroot /srv/fai/nfsroot-karmic/live/filesystem.dir > # mkdir /etc/unused > # mv /etc/init/* /etc/unused/ > # cp /etc/unused/mountall* /etc/init > # cp /etc/unused/*udev* /etc/init > # cp /etc/unused/hostname.conf /etc/init > # exit > # cp > $HOME/fai-sources/upstart/fai.conf > /srv/fai/nfsroot-karmic/live/filesystem.dir/etc/init > > After that you could use the patch fai-ubuntu-configspace.patch to > create a Ubuntu/karmic compatible configuration including grub2 > installation. > > Then you can use fai-chboot: > # fai-chboot -F -I -v -C /etc/fai-karmic/ faiclient > > After booting Ubuntu we found a small bug in the fstab generation. > The swap entry shouldn't be checked via fsck, this line: > /dev/sda5 none swap rw 0 2 > Should be generated like this: > /dev/sda5 none swap rw 0 0 > > Attached is a fai.log from the installation. There might be a change > needed in setup-storage, a variable is not initialized. > > One open bug is that the keymap while the installation is running > is not set correctly, see: > > Executing GERMAN.var > ++ KEYMAP=de-latin1-nodeadkeys > Loading keymap(s) de-latin1-nodeadkeys .../usr/bin/ckbcomp: Can not > find file "symbols/de-latin1-nodeadkeys" in any known directory > > It would be nice if you could integrate some of the patches. > If you think they are to ugly, you could at least add them to the > enterprise edition ;) > > best regards > Waldemar -- | Stephan '\sh' Hermann | OSS Dev / SysAdmin | | JID: s...@linux-server.org | http://www.sourcecode.de/ | | GPG ID: 0xC098EFA8 | http://leonov.tv/ | | FP: 3D8B 5138 0852 DA7A B83F DCCB C189 E733 C098 EFA8 |