diff options
author | Dirk von Suchodoletz | 2011-05-25 21:14:54 +0200 |
---|---|---|
committer | Dirk von Suchodoletz | 2011-05-25 21:14:54 +0200 |
commit | 982c5c7274d799253c023193c4a8ef4c7edc6cb0 (patch) | |
tree | d7e0be4909c096be76787e67ca10696af9a08c13 | |
parent | Typo fix in init ... (diff) | |
download | core-982c5c7274d799253c023193c4a8ef4c7edc6cb0.tar.gz core-982c5c7274d799253c023193c4a8ef4c7edc6cb0.tar.xz core-982c5c7274d799253c023193c4a8ef4c7edc6cb0.zip |
Adding fuse/unionfs code to stage3 init ...
-rwxr-xr-x | src/initramfs/scripts/init | 4 |
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 |