Parent Directory | Revision Log
create new image in temporary file
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 |
Name | Value |
---|---|
svn:executable | * |
ViewVC Help | |
Powered by ViewVC 1.1.26 |