Changeset 2545 in /cluster/svnroot


Ignore:
Timestamp:
Jul 24, 2010 5:45:30 PM (10 years ago)
Author:
skylar
Message:

adding working diskless initramfs (#338)

Location:
bccd-ng/branches/skylar-devel/trees/etc/initramfs-tools.diskless
Files:
1 added
2 edited
1 moved

Legend:

Unmodified
Added
Removed
  • bccd-ng/branches/skylar-devel/trees/etc/initramfs-tools.diskless/scripts/init-bottom/aufs

    r2540 r2545  
    1 #!/bin/busybox ash
     1#!/bin/sh
    22
    3 #set -e
    4 set -x
     3PREREQ=""
     4
     5prereqs()
     6{
     7        echo "$PREREQ"
     8}
     9
     10case $1 in
     11# get pre-requisites
     12prereqs)
     13        prereqs
     14        exit 0
     15        ;;
     16esac
    517
    618export PATH=$PATH:/bb/bin:/bb/sbin
    719. /conf/aufs.conf
    8 set
    9 sleep 10
    1020mkdir -p ${aufs}
    1121mount -t tmpfs none ${rootmnt}/tmp
    1222echo "AUFS mount: mount -t aufs -o dirs=${localclientdir}=rw:${localprojectdir}=ro:${rootmnt}=ro none /${aufs}"
    13 echo "sleep 10"
    1423mount -t aufs -o dirs=/${localclientdir}=rw:/${localprojectdir}=ro:${rootmnt}=ro none /${aufs}
    1524export LD_LIBRARY_PATH=${rootmnt}/lib:${rootmnt}/usr/lib
     
    2433. /tmp/net-eth0.conf
    2534
    26 grep "^$IPVADDR" $rootmnt/${aufs}/etc/hosts|awk '{print $2}' ${rootmnt}/etc/hostname
    27 
    28 echo "init-bottom done"
    29 sleep 10
     35echo "leaving init-bottom/aufs"
  • bccd-ng/branches/skylar-devel/trees/etc/initramfs-tools.diskless/scripts/nfs-bottom/aufs

    r2540 r2545  
    33#set -e
    44set -x
     5
     6PREREQ=""
     7
     8prereqs()
     9{
     10        echo "$PREREQ"
     11}
     12
     13case $1 in
     14# get pre-requisites
     15prereqs)
     16        prereqs
     17        exit 0
     18        ;;
     19esac
    520
    621# Unionfs processing
     
    2439echo "localprojectdir=${localprojectdir}" >> /conf/aufs.conf
    2540echo "localclientdir=${localclientdir}" >> /conf/aufs.conf
    26 
    27 echo "nfs-bottom done"
    28 sleep 10
     41echo "rootmnt=/root" >> /conf/aufs.conf
     42echo "aufs=/aufs" >> /conf/aufs.conf
Note: See TracChangeset for help on using the changeset viewer.