/[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

Diff of /bin/squashfs-overlay.sh

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 442 by dpavlin, Tue Sep 29 19:23:41 2009 UTC revision 448 by dpavlin, Thu Oct 1 11:23:05 2009 UTC
# Line 1  Line 1 
1    #!/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  sudo mount /srv/pxelator/tftp/webconverger/iso/live/filesystem.squashfs /tmp/base/ -o loop  sudo mount /srv/pxelator/tftp/webconverger/iso/live/filesystem.squashfs /tmp/base/ -o loop
12    
13  mkdir /tmp/changes /tmp/base /tmp/export  mkdir /tmp/changes /tmp/base /tmp/export
# Line 6  sudo mount -t aufs -o br:/tmp/changes/:/ Line 16  sudo mount -t aufs -o br:/tmp/changes/:/
16    
17  sudo chroot /tmp/export  sudo chroot /tmp/export
18    
19  sudo mksquashfs /tmp/export/ /srv/pxelator/tftp/webconverger/custom.squashfs  path=/srv/pxelator/tftp/webconverger/custom.squashfs
20    
21    test -e $path && mv $path $path.old
22    
23    sudo mksquashfs /tmp/export/ $path

Legend:
Removed from v.442  
changed lines
  Added in v.448

  ViewVC Help
Powered by ViewVC 1.1.26