Sugar on a Stick/Sugar Clone: Difference between revisions
No edit summary |
No edit summary |
||
| (3 intermediate revisions by the same user not shown) | |||
| Line 7: | Line 7: | ||
{{Message|'''Latest news''': | {{Message|'''Latest news''': | ||
'''23 September 2012''': I've updated editliveos.py with bug fixes and simplifications. Run it in from a folder with these files: | '''23 September 2012''': I've updated editliveos.py with bug fixes and simplifications. Run it in from a folder with these files: | ||
https://git.sugarlabs.org/~FGrose/soas/sugar-clone-extensions/trees/master/editliveos | |||
There is also a new Bash script, LiveOS-merge, for merging a LiveOS snapshot and refreshing an installation with the new image. (A new | There is also a new Bash script, LiveOS-merge, for merging a LiveOS snapshot and refreshing an installation with the new image. (A new | ||
| Line 170: | Line 170: | ||
* With edit-liveos (disk-to-iso), a nearly-consumed overlay can be refreshed by rebuilding the system into a new, SquashFS image that re[[wikipedia:Sparse_file|sparse]]s the system files and repackages them into an iso installation file for reuse or distribution. | * With edit-liveos (disk-to-iso), a nearly-consumed overlay can be refreshed by rebuilding the system into a new, SquashFS image that re[[wikipedia:Sparse_file|sparse]]s the system files and repackages them into an iso installation file for reuse or distribution. | ||
====editliveos.help==== | ====editliveos.help==== | ||
Below is the output of editliveos --help in a working version from | Below is the output of editliveos --help in a working version from 25 January 2013. | ||
{{Show|'''editliveos.py --help'''|<pre>Usage: | {{Show|'''editliveos.py --help'''|<pre>Usage: | ||
editliveos.py: [options] <LiveOS_source> | editliveos.py: [options] <LiveOS_source> | ||
| Line 185: | Line 185: | ||
[-N, --noshell] | [-N, --noshell] | ||
[-t, --tmpdir <tmpdir>] | [-t, --tmpdir <tmpdir>] | ||
[-T, --leave-tmpfiles] | |||
[-y, --yumcache <cachedir>] | [-y, --yumcache <cachedir>] | ||
[-e, --exclude <exclude, s>] | [-e, --exclude <exclude, s>] | ||
| Line 256: | Line 257: | ||
Temporary directory to use for staging the build. | Temporary directory to use for staging the build. | ||
(default: /var/tmp) | (default: /var/tmp) | ||
-T, --leave-tmpfiles Skip deletion of temporary files and directories and | |||
unmounting of the edited image. | |||
-y CACHEDIR, --yumcache=CACHEDIR | -y CACHEDIR, --yumcache=CACHEDIR | ||
Directory to use for for the yum cache. default: None | Directory to use for for the yum cache. default: None | ||
| Line 310: | Line 313: | ||
Specifies a new size of NN MiB for the overlay (or | Specifies a new size of NN MiB for the overlay (or | ||
changing the size by a difference of +NN or -NN MiB, | changing the size by a difference of +NN or -NN MiB, | ||
if a | if a size is prefixed). If NN = 0 (or nets to <= 0), | ||
no change will be made. | no change will be made. | ||
--refresh-only Specify replacing the squashfs.img or | --refresh-only Specify replacing the squashfs.img or rootfs_img of | ||
the source LiveOS installation instance with such | the source LiveOS installation instance with such | ||
files from the new build, and resetting any overlay. | files from the new build, and resetting any overlay. | ||
| Line 320: | Line 323: | ||
Specify the compression type for SquashFS. Will | Specify the compression type for SquashFS. Will | ||
override the current compression or lack thereof. | override the current compression or lack thereof. | ||
--compress Specify compression | --compress Specify compression for the filesystem imageUsed when | ||
overriding an uncompressed source. | |||
--skip-compression Specify building the .iso with an uncompressed root | |||
--skip-compression Specify building the .iso with an uncompressed | file system. | ||
--refresh-uncompressed | --refresh-uncompressed | ||
Specify refreshing the source with an uncompressed | Specify refreshing the source with an uncompressed | ||
root file system. | |||
--skip-minimize Specify no osmin.img minimal snapshot. | --skip-minimize Specify no osmin.img minimal snapshot. | ||
-a KERNELARGS, --extra-kernel-args=KERNELARGS | -a KERNELARGS, --extra-kernel-args=KERNELARGS | ||
| Line 415: | Line 417: | ||
The script code is below: | The script code is below: | ||
{{Iframe | {{Iframe | ||
| | |https://git.sugarlabs.org/~FGrose/soas/sugar-clone-extensions/blobs/master/editliveos/editliveos.py | ||
| | |https://git.sugarlabs.org/~FGrose/soas/sugar-clone-extensions/blobs/master/editliveos/editliveos.py#line4|800|600|1}} | ||