Sugar on a Stick/Sugar Clone: Difference between revisions
No edit summary |
No edit summary |
||
| (5 intermediate revisions by the same user not shown) | |||
| Line 6: | Line 6: | ||
{{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: | |||
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 | |||
osmin.img is not created, but it is only used during installation of a traditional image from a LiveOS image.) | |||
'''17 June 2012''': I've posted my working files for a new version of edit-livecd, which I named editliveos.py in this commit, | '''17 June 2012''': I've posted my working files for a new version of edit-livecd, which I named editliveos.py in this commit, | ||
http://git.sugarlabs.org/soas/sugar-clone-extensions/commit/8c4e03323fc9a7e630e6c62213bb842909fbaa00 | http://git.sugarlabs.org/soas/sugar-clone-extensions/commit/8c4e03323fc9a7e630e6c62213bb842909fbaa00 | ||
| Line 12: | Line 18: | ||
http://www.mail-archive.com/livecd@lists.fedoraproject.org/msg01506.html | http://www.mail-archive.com/livecd@lists.fedoraproject.org/msg01506.html | ||
It includes several new options for adjusting the image filesystem size as well as home.img and overlay file sizes. Expand the [[#editliveos. | It includes several new options for adjusting the image filesystem size as well as home.img and overlay file sizes. Expand the [[#editliveos.help]] listing below. | ||
It includes editliveos.py, liveimage-mount, and temporary versions of fs.py, live.py, creator.py, util.py (pending incremental patches for livecd-tools acceptance). The livecd-iso-to-disk version is not up-to-date with all the recent changes and improvements.}} | |||
| Line 172: | 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 187: | 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 258: | 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 312: | 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 322: | 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 417: | 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}} | ||