/[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 535 - (hide annotations)
Fri Sep 17 20:58:43 2010 UTC (13 years, 7 months ago) by dpavlin
File MIME type: application/x-sh
File size: 561 byte(s)
rename tool
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 dpavlin 453 sudo mksquashfs /tmp/export/ $path.new && mv $path $path.old && mv $path.new $path && chmod 444 $path

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.26