Difference between revisions of "Manjaro-tools"

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 '''-q''' option:
The work directory can be found using the '''-''' option:


  $ buildiso -p xfce-openbox-openrc/ -q
  ~ >>> buildiso -h                                                                                 
==> manjaro-tools
  Usage: buildiso [options]
  -> version: 0.9.6.4
    -p <profile>       Buildset or profile [default: default]
  -> user_config: /home/aaditya/.config/manjaro-tools.conf
    -a <arch>         Arch [default: x86_64]
  ==> PROFILE:
    -b <branch>       Branch [default: unstable]
  -> buildsets: community|default|official|openrc
    -r <dir>           Chroots directory
  -> buildset_iso: xfce-openbox-openrc/
                        [default: '''/var/lib/manjaro-tools/buildiso''']
  -> is_buildset: false
    -t <dir>          Target directory
==> OPTIONS:
                        [default: /home/fh/Data/build/iso]
  -> arch: x86_64
    -k <name>         Kernel to use
  -> branch: unstable
                        [default: linux419]
  -> chroots_iso: /mnt/datalinux2/manjaro-tools/buildiso
    -g <key>           The gpg key for sfs signing
...
                        [default: ]
...
    -m                Set SquashFS image mode to persistence
==> BUILD QUEUE:
    -c                Disable clean work dir
--> Profile: [xfce-openbox-openrc/] ...
    -f                Build full ISO (extra=true)
  -> Packages-Custom: Packages-Xfce
    -d <comp>         Compression used for build ISO: xz, gzip, lzma, lzo, lz4
  -> initsys: openrc
                        [default: xz]
  -> displaymanager: lxdm
    -x                Build images only
  -> is_plymouth: false
    -z                Generate iso only
  -> pacman_conf: pacman-multilib.conf
                        Requires pre built images (-x)
  '''-> work_dir: /mnt/datalinux2/manjaro-tools/buildiso/xfce-openbox-openrc//x86_64'''
    -v                Verbose output to log file, show profile detail (-q)
  -> iso_file: manjaro-xfce-openrc-2015-03-01-x86_64.iso
    -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 /mnt/datalinux2/manjaro-tools/buildiso/xfce-openbox-openrc//x86_64/xfce-image/etc/skel/.conkyrc
  $ 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 root-image, livecd-image, and DE-image (eg, xfce-image), and would need to be edited in the respective image directories.
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-openbox-openrc/ -cs
  $ buildiso -p xfce -cs


=== Alternative ===
=== Alternative ===
Line 239: Line 241:
For example:
For example:


  $ buildiso -p xfce-openrc/ -b stable -i
  $ buildiso -p xfce -b stable -x
==> Start building [xfce-openrc/]
==> Start building [xfce]
--> Profile: [xfce-openrc/]
==> Cleaning up ...
   -> Packages-Custom: Packages-Xfce
  -> Deleting chroot [rootfs] (x86_64) ...
==> Cleaning up ...
   -> Deleting isoroot [iso] ...
  ...
  ...
  ...
  ...
==> Done [manjaro/iso/isolinux]
==> Creating [isomounts]
  -> Writing livecd entry ...
  -> Writing pkgs entry ...
  -> Writing xfce entry ...
  -> Writing root entry ...
==> Done creating [isomounts]
--> Time build_images: 4.28 minutes
==> WARNING: Continue compress: buildiso -p xfce-openrc/ -sc ...


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-openrc/ -sc
  $ buildiso -p xfce/ -cz


= Further reading =
= Further reading =
Anonymous user