From f7fa4ac3435f9ade42c008c9bd30359e0df62b66 Mon Sep 17 00:00:00 2001 From: Sebastian Schmelzer Date: Fri, 27 May 2011 12:20:49 +0200 Subject: fuse unionfs --- src/initramfs/scripts/init | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) (limited to 'src/initramfs') diff --git a/src/initramfs/scripts/init b/src/initramfs/scripts/init index d1bdebbc..2e9021b9 100755 --- a/src/initramfs/scripts/init +++ b/src/initramfs/scripts/init @@ -109,6 +109,7 @@ rwdir=/dev/shm nfsro="nfs" aufs=1 unionfs=1 +#fuse=1 runinithook '00-started' @@ -778,16 +779,22 @@ if [ "x${union_type}" != "x" ] ; then if [ "$union_type" == "UnionFS" ]; then mount -n -t unionfs -o dirs=${rwdir}/uniontmp:/rorootfs=${nfsro}ro \ none /mnt + mkdir -p /mnt/uniontmp + mount -n --move ${rwdir}/uniontmp /mnt/uniontmp + chmod 0755 /mnt/uniontmp /mnt elif [ "$union_type" == "AUFS" ]; then mount -n -t aufs -o br:/${rwdir}/uniontmp:/rorootfs=ro none /mnt + mkdir -p /mnt/uniontmp + mount -n --move ${rwdir}/uniontmp /mnt/uniontmp + chmod 0755 /mnt/uniontmp /mnt elif [ "$union_type" == "Fuse" ]; then + mkdir -p /tmp/union/rorootfs /tmp/union/uniontmp + mount -n --move /rorootfs /tmp/union/rorootfs + mount -n --move ${rwdir}/uniontmp /tmp/union/uniontmp unionfs -o cow,max_files=32768,allow_other,use_ino,suid,dev \ - -o nonempty,chroot=/mnt \ - /${rwdir}/uniontmp=RW:/rorootfs=${nfsro}=RO /mnt + -o nonempty,chroot=/tmp/union \ + /uniontmp=RW:/rorootfs=RO /mnt fi - mkdir -p /mnt/uniontmp - mount -n --move ${rwdir}/uniontmp /mnt/uniontmp - chmod 0755 /mnt/uniontmp /mnt # running hardware disk/tmp setup now hwautocfg disk & # run ldconfig if switched on via kernel command line (token ldsc) or -- cgit v1.2.3-55-g7522