Creating .unc extensions for unionfs?Forum: Other Help Topics Topic: Creating .unc extensions for unionfs? started by: firecat53 Posted by firecat53 on Aug. 07 2006,02:48
Could someone post a short guide on creating the new .unc extensions for the unionfs or point me where to find the info? I've searched the forums and the wiki, finding the bits on creating .dsl and .uci extensions, and a little on how to use the unionfs, but I can't quite make the leap to actually get the .unc to work.Thanks! Scott Posted by clacker on Aug. 07 2006,12:34
firecat53, try looking < here > where robert explains it.The easiest way to make a *.unc is to make a working *.dsl first. Put the myapp.dsl in /home/dsl and do the following (copied from robert's post but I added the --same-owner switch to the tar command): 1. mkdir myapp 2. cd myapp 3. sudo tar -zxvf ../myapp.dsl --same-owner 4. find home tmp -type f | xargs tar -czvf user.tar.gz 5. rm -rf home/ tmp/ 6. cd .. 7 mkisofs -R -hide-rr-moved -cache-inodes -pad myapp/ | create_compressed_fs - 65536 > myapp.unc Posted by firecat53 on Aug. 09 2006,15:21
Thanks for the reply, clacker! I missed that post.Scott Posted by Winter Knight on Aug. 09 2006,19:56
That script might not work unless you make the following changes:5. sudo rm -rf home/ tmp/ Because of your change to #3, keeping the same owner, it is possible that files in home and tmp have files belonging to root. If there are, these files won't be deleted, and neither will home and tmp. Then the offending file, home and tmp will be included in the final unc. I was thinking that 4 might need a sudo as well, but it doesn't. The permissions will be default permissions, which give everyone the right to read, no matter who the owner is. Posted by clacker on Aug. 09 2006,20:02
Good point, thanks. If there were files like that in /home or /tmp it could be a problem.
|