Changeset 2540 in /cluster/svnroot


Ignore:
Timestamp:
Jul 24, 2010 2:51:07 PM (10 years ago)
Author:
skylar
Message:

getting there with initramfs (#338)

Location:
bccd-ng/branches/skylar-devel/trees/etc/initramfs-tools.net/scripts
Files:
2 edited

Legend:

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

    r2537 r2540  
    1 #!/bin/sh -e
     1#!/bin/busybox ash
    22
     3#set -e
    34set -x
    45
    56export PATH=$PATH:/bb/bin:/bb/sbin
     7. /conf/aufs.conf
     8set
     9sleep 10
    610mkdir -p ${aufs}
    711mount -t tmpfs none ${rootmnt}/tmp
    812echo "AUFS mount: mount -t aufs -o dirs=${localclientdir}=rw:${localprojectdir}=ro:${rootmnt}=ro none /${aufs}"
     13echo "sleep 10"
    914mount -t aufs -o dirs=/${localclientdir}=rw:/${localprojectdir}=ro:${rootmnt}=ro none /${aufs}
    1015export LD_LIBRARY_PATH=${rootmnt}/lib:${rootmnt}/usr/lib
     
    2025
    2126grep "^$IPVADDR" $rootmnt/${aufs}/etc/hosts|awk '{print $2}' ${rootmnt}/etc/hostname
     27
     28echo "init-bottom done"
     29sleep 10
  • bccd-ng/branches/skylar-devel/trees/etc/initramfs-tools.net/scripts/nfs-bottom/aufs

    r2537 r2540  
    1 #!/bin/sh -e
     1#!/bin/sh
    22
     3#set -e
    34set -x
    45
     
    1819umount ${localclientdir}
    1920nfsmount -o rw ${ROOTSERVER}:${CLIENTDIR}/${IPV4ADDR} ${localclientdir}
     21
     22echo "projectdir=${projectdir}" >> /conf/aufs.conf
     23echo "clientdir=${clientdir}" >> /conf/aufs.conf
     24echo "localprojectdir=${localprojectdir}" >> /conf/aufs.conf
     25echo "localclientdir=${localclientdir}" >> /conf/aufs.conf
     26
     27echo "nfs-bottom done"
     28sleep 10
Note: See TracChangeset for help on using the changeset viewer.