diff options
author | Sebastian Schmelzer | 2011-05-27 12:20:49 +0200 |
---|---|---|
committer | Sebastian Schmelzer | 2011-05-27 12:20:49 +0200 |
commit | f7fa4ac3435f9ade42c008c9bd30359e0df62b66 (patch) | |
tree | ca0678085d8591d6fdae6fb886b9fdce3c55a325 /src/initramfs | |
parent | More on SuSE services ... (diff) | |
download | core-f7fa4ac3435f9ade42c008c9bd30359e0df62b66.tar.gz core-f7fa4ac3435f9ade42c008c9bd30359e0df62b66.tar.xz core-f7fa4ac3435f9ade42c008c9bd30359e0df62b66.zip |
fuse unionfs
Diffstat (limited to 'src/initramfs')
-rwxr-xr-x | src/initramfs/scripts/init | 17 |
1 files changed, 12 insertions, 5 deletions
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 |