à faire

    if get_boolean "$NBD_SWAP" ; then
        SWAP_SERVER=${SWAP_SERVER:-"$SERVER"}
        NBD_PORT=${NBD_PORT:-"9572"}
        modprobe nbd
        /sbin/nbd-client $SWAP_SERVER $NBD_PORT /dev/nbd0 && swap_devices="$swap_devices /dev/nbd0"
    fi

if [ -n "$SWAPDIR" ]; then
    if [ -d "$SWAPDIR" ] && [ -w "$SWAPDIR" ]; then
        TEMPFILE_OPTS="-d $SWAPDIR"
    else
        echo "ERROR: not a directory or not writeable: $SWAPDIR" > /dev/stderr
        exit 1
    fi
fi

if [ -z "$SWAP" ]; then
    SWAP=$(tempfile $TEMPFILE_OPTS)
fi

# generate the swap file
dd if=/dev/zero of=$SWAP bs=1024k count=$SIZE 2> /dev/null

if [ "$RUN_MKSWAP" = "true" ]; then
    /sbin/mkswap $SWAP > /dev/null 2>&1
fi

# start the swap server
/bin/nbd-server 0 $SWAP $NBD_SERVER_OPTS

# clean up the swap file
rm -f $SWAP

notes en vrac...

#debootstrap --arch i386 feisty /mnt/ http://miroirs.refer.sn/ubuntu/
#chroot /mnt/ /bin/bash
#aptitude install linux-image-2.6.20-16-generic
#cd /etc/initramfs-tools
dans initramfs.conf :
MODULES=netboot
BOOT=nfs
forcedeth dans /etc/initramfs/modules

#mkinitramfs -o /boot/inird.img
 

/etc/fstab : 
 tmpfs tmp
 proc




cat $racine/etc/initramfs-tools/scripts/nfs-bottom/unionfs
#!/bin/sh
case $1 in
 prereqs)
 exit 0
 ;;
esac

mkdir /cow /nfsroot
mount -n -t tmpfs tmpfs /cow
mount -n -o move /root /nfsroot
mount -n -t unionfs -o dirs=/cow=rw:/nfsroot=nfsro unionfs /root

sur le client, aprés reboot :

aptitude install ubuntu-desktop 
dpkg-reconfigure locales
dpkg-reconfigure tzdata

aptitude install auf-netboot 

* temps entre le début du chargement du kernel sur le réseau et le prompt gdm : 30s

package auf-netboot

Tini/Notes/ClientsNfsroot (dernière édition le 2008-02-21 22:09:21 par localhost)