/[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 536 - (hide annotations)
Fri Sep 17 21:12:38 2010 UTC (13 years, 6 months ago) by dpavlin
File MIME type: application/x-sh
File size: 820 byte(s)
make it more robust

exit on errors, install squashfs-tools if needed

1 dpavlin 448 #!/bin/sh -x
2    
3 dpavlin 536 from=/srv/pxelator/tftp/webconverger/iso/live/filesystem.squashfs
4     path=/srv/pxelator/tftp/webconverger/custom.squashfs
5    
6     from=/srv/pxelator/tftp/debian_live/debian-live-60alpha2-i386-standard.squashfs
7     path=/srv/pxelator/tftp/debian_live/custom.squashfs
8    
9 dpavlin 448 if mount | egrep '/tmp/(base|export|changes)' ; then
10     sudo umount -l /tmp/changes
11     sudo umount -l /tmp/base
12     sudo umount -l /tmp/export
13     echo "umounted"
14     exit
15     fi
16    
17 dpavlin 536 sudo apt-get install squashfs-tools
18 dpavlin 442
19 dpavlin 536 sudo mount $from /tmp/base/ -o loop || exit
20    
21 dpavlin 442 mkdir /tmp/changes /tmp/base /tmp/export
22    
23 dpavlin 536 sudo mount -t aufs -o br:/tmp/changes/:/tmp/base/ none /tmp/export/ || exit
24 dpavlin 442
25    
26 dpavlin 536 echo "Now modify your installation"
27     sudo chroot /tmp/export || exit
28 dpavlin 448
29 dpavlin 536
30     sudo mksquashfs /tmp/export/ $path.new && mv $path $path.old && mv $path.new $path && chmod 444 $path && ls -al $path

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.26