/[pxelator]/bin/squashfs-overlay.sh
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Annotation of /bin/squashfs-overlay.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 448 - (hide annotations)
Thu Oct 1 11:23:05 2009 UTC (14 years, 6 months ago) by dpavlin
Original Path: bin/webc-overlay.sh
File MIME type: application/x-sh
File size: 531 byte(s)
umount if allready mounted
1 dpavlin 448 #!/bin/sh -x
2    
3     if mount | egrep '/tmp/(base|export|changes)' ; then
4     sudo umount -l /tmp/changes
5     sudo umount -l /tmp/base
6     sudo umount -l /tmp/export
7     echo "umounted"
8     exit
9     fi
10    
11 dpavlin 442 sudo mount /srv/pxelator/tftp/webconverger/iso/live/filesystem.squashfs /tmp/base/ -o loop
12    
13     mkdir /tmp/changes /tmp/base /tmp/export
14    
15     sudo mount -t aufs -o br:/tmp/changes/:/tmp/base/ none /tmp/export/
16    
17     sudo chroot /tmp/export
18    
19 dpavlin 448 path=/srv/pxelator/tftp/webconverger/custom.squashfs
20    
21     test -e $path && mv $path $path.old
22    
23     sudo mksquashfs /tmp/export/ $path

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.26