summaryrefslogtreecommitdiffstats
path: root/src/initramfs
diff options
context:
space:
mode:
authorSebastian Schmelzer2011-05-25 21:17:35 +0200
committerSebastian Schmelzer2011-05-25 21:17:35 +0200
commit1f297195d26eb11b95fe0f54ab6b9f74165575e7 (patch)
tree89621e1ee0453ed0735fc8731c556b86bfac2fe9 /src/initramfs
parentMerge branch 'master' of openslx.org:openslx/core (diff)
parentAdding fuse/unionfs code to stage3 init ... (diff)
downloadcore-1f297195d26eb11b95fe0f54ab6b9f74165575e7.tar.gz
core-1f297195d26eb11b95fe0f54ab6b9f74165575e7.tar.xz
core-1f297195d26eb11b95fe0f54ab6b9f74165575e7.zip
Merge branch 'master' of openslx.org:openslx/core
Diffstat (limited to 'src/initramfs')
-rwxr-xr-xsrc/initramfs/scripts/init4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/initramfs/scripts/init b/src/initramfs/scripts/init
index a2db7a88..40641a36 100755
--- a/src/initramfs/scripts/init
+++ b/src/initramfs/scripts/init
@@ -780,6 +780,10 @@ if [ "x${union_type}" != "x" ] ; then
none /mnt
elif [ "$union_type" == "AUFS" ]; then
mount -n -t aufs -o br:/${rwdir}/uniontmp:/rorootfs=ro none /mnt
+ elif [ "$union_type" == "Fuse" ]; then
+ unionfs -o cow,max_files=32768,allow_other,use_ino,suid,dev \
+ -o nonempty,chroot=/mnt \
+ ${rwdir}/uniontmp=RW:/rorootfs=${nfsro}=RO /mnt
fi
mkdir -p /mnt/uniontmp
mount -n --move ${rwdir}/uniontmp /mnt/uniontmp