summaryrefslogtreecommitdiffstats
path: root/src/initramfs
diff options
context:
space:
mode:
authorDirk von Suchodoletz2011-05-25 21:14:54 +0200
committerDirk von Suchodoletz2011-05-25 21:14:54 +0200
commit982c5c7274d799253c023193c4a8ef4c7edc6cb0 (patch)
treed7e0be4909c096be76787e67ca10696af9a08c13 /src/initramfs
parentTypo fix in init ... (diff)
downloadcore-982c5c7274d799253c023193c4a8ef4c7edc6cb0.tar.gz
core-982c5c7274d799253c023193c4a8ef4c7edc6cb0.tar.xz
core-982c5c7274d799253c023193c4a8ef4c7edc6cb0.zip
Adding fuse/unionfs code to stage3 init ...
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 e6c63a9b..cf7e56e1 100755
--- a/src/initramfs/scripts/init
+++ b/src/initramfs/scripts/init
@@ -756,6 +756,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