Difference between revisions of "Manjaro-tools"
→Building with a small config change
imported>Fhdk |
imported>Fhdk |
||
Line 196: | Line 196: | ||
Supposing something only changed in config, like a setting, instead of building the whole ISO from scratch, the ISO build directory can be modified and the ISO can be rebuilt. For example, supposing one changed ''xfce-overlay/etc/skel/.conkyrc'' in the config, one can go into the work directory, modify the said file, and rebuild the ISO using the '''-cs''' option. | Supposing something only changed in config, like a setting, instead of building the whole ISO from scratch, the ISO build directory can be modified and the ISO can be rebuilt. For example, supposing one changed ''xfce-overlay/etc/skel/.conkyrc'' in the config, one can go into the work directory, modify the said file, and rebuild the ISO using the '''-cs''' option. | ||
The work directory can be found using the '''- | The work directory can be found using the '''-''' option: | ||
~ >>> buildiso -h | |||
Usage: buildiso [options] | |||
-p <profile> Buildset or profile [default: default] | |||
-a <arch> Arch [default: x86_64] | |||
-b <branch> Branch [default: unstable] | |||
-r <dir> Chroots directory | |||
[default: '''/var/lib/manjaro-tools/buildiso'''] | |||
-t <dir> Target directory | |||
[default: /home/fh/Data/build/iso] | |||
-k <name> Kernel to use | |||
[default: linux419] | |||
-g <key> The gpg key for sfs signing | |||
[default: ] | |||
-m Set SquashFS image mode to persistence | |||
-c Disable clean work dir | |||
-f Build full ISO (extra=true) | |||
-d <comp> Compression used for build ISO: xz, gzip, lzma, lzo, lz4 | |||
[default: xz] | |||
-x Build images only | |||
-z Generate iso only | |||
Requires pre built images (-x) | |||
-v Verbose output to log file, show profile detail (-q) | |||
-q Query settings and pretend build | |||
-h This help | |||
(work directory highlighted in bold) | (work directory highlighted in bold) | ||
The required file can be edited as root, for example: | The required file can be edited as root, for example: | ||
$ sudo nano / | $ sudo nano /var/lib/manjaro-tools/buildiso/xfce/x86_64/desktopfs/etc/skel/.conkyrc | ||
There is a catch involved here though; the file one wants to edit may be present in multiple images, like | There is a catch involved here though; the file one wants to edit may be present in multiple images, like rootfs, livefs, desktopfs), and would need to be edited in the respective image directories. | ||
Then the ISO then can be rebuilt as: | Then the ISO then can be rebuilt as: | ||
$ buildiso -p xfce | $ buildiso -p xfce -cs | ||
=== Alternative === | === Alternative === | ||
Line 239: | Line 241: | ||
For example: | For example: | ||
$ buildiso -p xfce | $ buildiso -p xfce -b stable -x | ||
==> Start building [xfce] | |||
==> Cleaning up ... | |||
-> | -> Deleting chroot [rootfs] (x86_64) ... | ||
-> Deleting isoroot [iso] ... | |||
... | ... | ||
... | ... | ||
After this the changes in the work directory can be made, and the ISO can be generated with: | After this the changes in the work directory can be made, and the ISO can be generated with: | ||
$ buildiso -p xfce | $ buildiso -p xfce/ -cz | ||
= Further reading = | = Further reading = |