Artix Linux Forum

Artix Linux => Tutorials and HOWTOs => Topic started by: robin0800 on 11 December 2017, 14:26:12

Title: Build a desktop iso using Artools
Post by: robin0800 on 11 December 2017, 14:26:12
The correct method is now in the wiki, see below

https://wiki.artixlinux.org/Main/InstallationUsingBuildiso
Title: Re: Build a desktop iso using Artools
Post by: artoo on 13 December 2017, 17:51:31
You could scrap that, next release of artools has image extraction re-implemented.
Default will stay with netinstall.
Title: Re: Build a desktop iso using Artools
Post by: robin0800 on 13 December 2017, 23:21:25
Ok I will as soon as the new iso is released and thank you very much, in advance, for this great improvement.
Title: Re: Build a desktop iso using Artools
Post by: ᒤᕞᕹᓸ on 13 December 2017, 23:56:39
This is great! Now we have image extraction and torrent file creation available for community isos. :D

I know archbang now has a version based on artix. We are getting more popular!

Keep up the great work devs and thank you.
Title: Re: Build a desktop iso using Artools
Post by: artoo on 14 December 2017, 00:20:02
This is great! Now we have image extraction and torrent file creation available for community isos. :D

I would really ask you guys to not do community iso and upload them.
It would be very much counterproductive with a small team, and we also do not build any desktop environment ourself currently.

This feature is purely meant to be a private feature for the moment. Please, do be short sighted and offer any community iso.
We also do not really go the manjaro route with dozens of iso, which is hell to keep overview, and pretty much useless, since you can install any DE from repos.

The image extraction is much more targeting network deployment with pure cli system to be customized.
This was one point of critique in the distro watch review.

That being said, in summary, you don't help us if you do iso and upload them, you do help us if you learn to maintain some package and how to do a pull request on github.
Packages are high priority, iso not, since it is made from packages.
Title: Re: Build a desktop iso using Artools
Post by: nous on 14 December 2017, 11:02:48
What about a ISO snapshot install, i.e. no package download during installation? It would eliminate interrupted installations due to bad sigs etc and at least give new users a basic working desktop, which they can boot into and add whatever they want afterwards.
Title: Re: Build a desktop iso using Artools
Post by: robin0800 on 14 December 2017, 11:40:17
Just for info I do make community iso's but they are for personal use and never posted anywhere. Certainly the only person who has to deal with problems is me.
Title: Re: Build a desktop iso using Artools
Post by: artoo on 14 December 2017, 11:44:22
What about a ISO snapshot install, i.e. no package download during installation? It would eliminate interrupted installations due to bad sigs etc and at least give new users a basic working desktop, which they can boot into and add whatever they want afterwards.

Thats what image extraction does. It unsquashes rootfs.sfs and desktopfs.sfs.
Idea is, that we offer a cli iso which only extracts the rootfs.sfs for network deployment in combination with pxe boot.

As for desktop stuff, my idea was yesterday, that we may add a kernel parameter to the iso to disable netinstall calamares module.
It could use eg "unpack" to kernel param in iso grub, and iso would configure calamares to extract images instead of default netinstall in live session. It would reduce the need to build iso for these two configurations, it would be all in one. :)
Title: Re: Build a desktop iso using Artools
Post by: artoo on 19 December 2017, 15:43:16
buildiso won't have an option to disable netinstall, grub will do that and iso will configure at run time calamares.

(https://s13.postimg.org/3x6utdlj7/netinstall_grub.png) (https://postimg.org/image/3x6utdlj7/)
Title: Re: Build a desktop iso using Artools
Post by: robin0800 on 19 December 2017, 16:05:14
buildiso won't have an option to disable netinstall, grub will do that and iso will configure at run time calamares.

(https://s13.postimg.org/3x6utdlj7/netinstall_grub.png) (https://postimg.org/image/3x6utdlj7/)

That sounds great but how will you build a desktop DE if build iso doesn't know it has to?
Title: Re: Build a desktop iso using Artools
Post by: artoo on 19 December 2017, 16:21:47
That sounds great but how will you build a desktop DE if build iso doesn't know it has to?


Well, the sfs images are already present anyway, calamares just does not extract them if in netinstall mode, but pulls packages from repo url.
Title: Re: Build a desktop iso using Artools
Post by: robin0800 on 19 December 2017, 17:16:10

Well, the sfs images are already present anyway, calamares just does not extract them if in netinstall mode, but pulls packages from repo url.

 Yes but buildiso does not build a desktopfs.sfs file at present  only live and root 
Title: Re: Build a desktop iso using Artools
Post by: artoo on 19 December 2017, 19:06:26
Yes but buildiso does not build a desktopfs.sfs file at present  only live and root 

Tats because you chose to leave out  desktopfs layer.
Title: Re: Build a desktop iso using Artools
Post by: robin0800 on 19 December 2017, 19:25:16
Tats because you chose to leave out  desktopfs layer.
How to enable the desktopfs layer then and where?

@artoo

I have checked in Manjaro and they have two switches in profile.conf one for net install yes/no
and one for unpackfs or chroot not sure why?
If you use netinstall you need chroot and if you don't you need unpackfs so just one switch would do?
Title: Re: Build a desktop iso using Artools
Post by: artoo on 30 December 2017, 14:07:05
How to enable the desktopfs layer then and where?

@artoo

I have checked in Manjaro and they have two switches in profile.conf one for net install yes/no
and one for unpackfs or chroot not sure why?
If you use netinstall you need chroot and if you don't you need unpackfs so just one switch would do?

Manjaro is manjaro, artix is artix.
How its done on manjaro is not how its done in artix.

Take a look at our iso profiles, you will notice a Packages-Desktop file.
There will not be a netinstall switch in buildiso, as already pointed out. It will be done with a grub menu entry to chose if netinstal or unpackfs.
Title: Re: Build a desktop iso using Artools
Post by: robin0800 on 30 December 2017, 14:40:28
Yes all you say is true but as I keep saying issuing "buildiso -p cinnamon" will not build an iso including the Packages-desktop in the iso profile cinnamon folder only "base" and "live" get built so the switch in grub is useless.
Title: Re: Build a desktop iso using Artools
Post by: artoo on 30 December 2017, 14:59:31
Yes all you say is true but as I keep saying issuing "buildiso -p cinnamon" will not build an iso including the Packages-desktop in the iso profile cinnamon folder only "base" and "live" get built so the switch in grub is useless.

Stands to reason, your profile is somehow borked, ie an error on your end, which I can't say, becasue its hypothetical and your profile not viewable online.
Keep also in mind, we do not support any DE, all DE come from arch repos.
Title: Re: Build a desktop iso using Artools
Post by: robin0800 on 30 December 2017, 23:47:29
Code: [Select]
robin0800@robins-desktop ~]$ buildiso -p cinnamon -qv
[sudo] password for robin0800:
==> artools
  -> version: 0.6
  -> config: /etc/artools/artools.conf
==> OPTIONS:
  -> profile: cinnamon
  -> arch: x86_64
  -> initsys: openrc
  -> kernel: linux-lts
==> ARGS:
  -> clean_first: true
  -> images_only: false
  -> iso_only: false
  -> persist: false
==> ISO SETTINGS:
  -> iso_version: 20171230
==> BUILD:
  -> iso_file: artix-cinnamon-20171230-x86_64.iso
  -> autologin:
  -> netgroups: /netgroups-openrc.yaml
  -> hostname:
  -> username:
  -> password:
  -> addgroups:
  -> enable_live:
  -> openrc_boot:
  -> openrc_default:
[robin0800@robins-desktop ~]$

[robin0800@robins-desktop ~]$ buildiso -p cinnamon
==> Start building [cinnamon]
==> Deleting isoroot [iso] ...
 --> Loading Packages: [Packages-Root] ...
==> Prepare [Base installation] (rootfs)
==> Creating install root at /var/lib/artools/buildiso/cinnamon/x86_64/rootfs
  -> Installing packages to /var/lib/artools/buildiso/cinnamon/x86_64/rootfs
:: Synchronizing package databases...
 system                                     171.0 KiB   518K/s 00:00 [######################################] 100%
 world                                      438.1 KiB   811K/s 00:01 [######################################] 100%
 galaxy                                      69.0 KiB  1149K/s 00:00 [######################################] 100%
 lib32                                        6.9 KiB  0.00B/s 00:00 [######################################] 100%
 extra                                     1643.3 KiB  5.73M/s 00:00 [######################################] 100%
 community                                    4.3 MiB  12.9M/s 00:00 [######################################] 100%
 multilib                                   169.2 KiB  16.5M/s 00:00 [######################################] 100%
resolving dependencies...
looking for conflicting packages...
Total Download Size:     4.48 MiB
Total Installed Size:  851.46 MiB

:: Proceed with installation? [Y/n]
:: Retrieving packages...
 0%
(206/206) loading package files                                      [######################################] 100%
(206/206) checking for file conflicts                                [######################################] 100%
(206/206) checking available disk space                              [######################################] 100%
:: Processing package changes...
[##############################################] 100%
:: Running post-transaction hooks...
(1/6) Updating linux-lts initcpios
==> Building image from preset: /etc/mkinitcpio.d/linux-lts.preset: 'default'
  -> -k /boot/vmlinuz-linux-lts -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-lts.img
==> Starting build: 4.9.70-1-lts
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [autodetect]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
  -> Running build hook: [filesystems]
  -> Running build hook: [keyboard]
  -> Running build hook: [fsck]
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: /boot/initramfs-linux-lts.img
==> Image generation successful
==> Building image from preset: /etc/mkinitcpio.d/linux-lts.preset: 'fallback'
  -> -k /boot/vmlinuz-linux-lts -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-lts-fallback.img -S autodetect
==> Starting build: 4.9.70-1-lts
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: aic94xx
==> WARNING: Possibly missing firmware for module: wd719x
  -> Running build hook: [filesystems]
  -> Running build hook: [keyboard]
  -> Running build hook: [fsck]
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: /boot/initramfs-linux-lts-fallback.img
==> Image generation successful
(2/6) Warn about old perl modules
(3/6) Displaying openrc service help ...
==> Add a service to runlevel:
rc-update add <service> <runlevel>
(4/6) Updating system users and groups
(5/6) Updating the info directory file...
(6/6) Rebuilding certificate stores...
 --> Setting locale ...
Generating locales...
  en_US.UTF-8... done
Generation complete.
  -> Cleaning [rootfs]
 --> Resetting locale ...
==> Done [Base installation] (rootfs)
 --> Loading Packages: [Packages-Live] ...
==> Prepare [Live installation] (livefs)
 --> overlayfs mount: [/var/lib/artools/buildiso/cinnamon/x86_64/livefs]
==> Creating install root at /var/lib/artools/buildiso/cinnamon/x86_64/livefs
  -> Installing packages to /var/lib/artools/buildiso/cinnamon/x86_64/livefs
:: Synchronizing package databases...
 system                                                  171.0 KiB  1900K/s 00:00 [##############################################] 100%
 world                                                   438.1 KiB  6.11M/s 00:00 [##############################################] 100%
 galaxy                                                   69.0 KiB  1724K/s 00:00 [##############################################] 100%
 lib32                                                     6.9 KiB  0.00B/s 00:00 [##############################################] 100%
 extra                                                  1643.3 KiB  5.73M/s 00:00 [##############################################] 100%
 community                                                 4.3 MiB  13.3M/s 00:00 [##############################################] 100%
 multilib                                                169.2 KiB  8.26M/s 00:00 [##############################################] 100%
resolving dependencies...
looking for conflicting packages...

:: Proceed with installation? [Y/n]
:: Retrieving packages...
 mkinitcpio-nfs-utils-0.3-5-x86_64                        16.5 KiB   550K/s 00:00 [##############################################] 100%
 linux-4.14.6-1-x86_64                                    60.1 MiB  3.14M/s 00:19 [##############################################] 100%
 artix-live-base-0.4.3-1-any                               6.6 KiB  0.00B/s 00:00 [##############################################] 100%
 artix-live-openrc-0.4.3-1-any                             2.6 KiB  0.00B/s 00:00 [##############################################] 100%
 artix-grub-theme-common-0.4-1-any                        16.1 KiB  0.00B/s 00:00 [##############################################] 100%
 artix-grub-theme-0.4-1-any                              191.8 KiB  3.75M/s 00:00 [##############################################] 100%
 artix-live-portable-efi-0.4.3-1-any                       3.1 KiB  0.00B/s 00:00 [##############################################] 100%
 xorg-xrandr-1.5.0-1-x86_64                               33.8 KiB   117K/s 00:00 [##############################################] 100%
 virtualbox-guest-modules-artix-5.2.2-10.1-x86_64        137.0 KiB   856K/s 00:00 [##############################################] 100%
 nbd-3.16.2-2-x86_64                                      67.8 KiB   968K/s 00:00 [##############################################] 100%
 virtualbox-guest-utils-5.2.4-1-x86_64                  1210.8 KiB  3.03M/s 00:00 [##############################################] 100%
(34/34) checking keys in keyring                                                  [##############################################] 100%
(34/34) checking package integrity                                                [##############################################] 100%
(34/34) loading package files                                                     [##############################################] 100%
(34/34) checking for file conflicts                                               [##############################################] 100%
(34/34) checking available disk space                                             [##############################################] 100%
:: Processing package changes...
:: Running post-transaction hooks...
(1/5) Updating linux module dependencies...
(2/5) Updating linux-lts initcpios
==> Building image from preset: /etc/mkinitcpio.d/linux-lts.preset: 'default'
  -> -k /boot/vmlinuz-linux-lts -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-lts.img
==> Starting build: 4.9.70-1-lts
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [autodetect]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
  -> Running build hook: [filesystems]
  -> Running build hook: [keyboard]
  -> Running build hook: [fsck]
==> ERROR: file not found: `fsck.overlay'
==> WARNING: No fsck helpers found. fsck will not be run on boot.
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: /boot/initramfs-linux-lts.img
==> WARNING: errors were encountered during the build. The image may not be complete.
==> Building image from preset: /etc/mkinitcpio.d/linux-lts.preset: 'fallback'
  -> -k /boot/vmlinuz-linux-lts -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-lts-fallback.img -S autodetect
==> Starting build: 4.9.70-1-lts
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: aic94xx
==> WARNING: Possibly missing firmware for module: wd719x
  -> Running build hook: [filesystems]
  -> Running build hook: [keyboard]
  -> Running build hook: [fsck]
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: /boot/initramfs-linux-lts-fallback.img
==> Image generation successful
error: command failed to execute correctly
(3/5) Updating linux initcpios...
==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'default'
  -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
==> Starting build: 4.14.6-1-ARTIX
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [autodetect]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
  -> Running build hook: [filesystems]
  -> Running build hook: [keyboard]
  -> Running build hook: [fsck]
==> ERROR: file not found: `fsck.overlay'
==> WARNING: No fsck helpers found. fsck will not be run on boot.
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: /boot/initramfs-linux.img
==> WARNING: errors were encountered during the build. The image may not be complete.
==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'fallback'
  -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-fallback.img -S autodetect
==> Starting build: 4.14.6-1-ARTIX
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: aic94xx
==> WARNING: Possibly missing firmware for module: wd719x
  -> Running build hook: [filesystems]
  -> Running build hook: [keyboard]
  -> Running build hook: [fsck]
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: /boot/initramfs-linux-fallback.img
==> Image generation successful
error: command failed to execute correctly
(4/5) Displaying openrc service help ...
==> Add a service to runlevel:
rc-update add <service> <runlevel>
(5/5) Updating system users and groups
 --> Setting locale ...
Generating locales...
  en_US.UTF-8... done
Generation complete.
  -> Copying [live-overlay] ...
==> Configuring [livefs]
  -> Configuring logind ...
 --> Configuring [openrc]
 --> Done configuring [openrc]
  -> Writing live.conf
==> Done configuring [livefs]
 --> overlayfs umount: [/var/lib/artools/buildiso/cinnamon/x86_64/livefs]
  -> Cleaning [livefs]
 --> Resetting locale ...
==> Done [Live installation] (livefs)
==> Prepare [/iso/boot]
 --> overlayfs mount: [/var/lib/artools/buildiso/cinnamon/x86_64/bootfs]
  -> Copying initcpio ...
==> Starting build: 4.14.6-1-ARTIX
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [artix_shutdown]
  -> Running build hook: [artix]
  -> Running build hook: [artix_loop_mnt]
  -> Running build hook: [artix_pxe_common]
  -> Running build hook: [artix_pxe_http]
  -> Running build hook: [artix_pxe_nbd]
  -> Running build hook: [artix_pxe_nfs]
  -> Running build hook: [artix_kms]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: aic94xx
==> WARNING: Possibly missing firmware for module: wd719x
  -> Running build hook: [pcmcia]
  -> Running build hook: [filesystems]
  -> Running build hook: [keyboard]
  -> Running build hook: [keymap]
==> Generating module dependencies
==> Creating xz-compressed initcpio image: /boot/initramfs.img
bsdcpio: Failed to set default locale
^X==> Image generation successful
 --> overlayfs umount: [/var/lib/artools/buildiso/cinnamon/x86_64/bootfs]
==> Done [/iso/boot]
==> Prepare [/iso/boot/grub]
  -> Building core.img ...
  -> Building bootx64.efi ...
  -> Creating fat image of 4M ...
 --> mount: [/var/lib/artools/buildiso/cinnamon/mnt/efiboot]
  -> Building bootx64.efi ...
 --> umount: [/var/lib/artools/buildiso/cinnamon/mnt/efiboot]
==> Done [/iso/boot/grub]
 --> Time prepare_images: 2.90 minutes
==> Start [Build ISO]
==> Generating SquashFS image for /var/lib/artools/buildiso/cinnamon/x86_64/rootfs
  -> Creating SquashFS image, this may take some time...
Parallel mksquashfs: Using 4 processors
Creating 4.0 filesystem on /var/lib/artools/buildiso/cinnamon/iso/artix/x86_64/rootfs.sfs, block size 262144.
[=/                                                                                                                 ]   500/36890   1%^C==> ERROR: Aborted by user! Exiting...

[robin0800@robins-desktop ~]$

[robin0800@robins-desktop ~]$ buildiso -p lxqt -qv
==> artools
  -> version: 0.6
  -> config: /etc/artools/artools.conf
==> OPTIONS:
  -> profile: lxqt
  -> arch: x86_64
  -> initsys: openrc
  -> kernel: linux-lts
==> ARGS:
  -> clean_first: true
  -> images_only: false
  -> iso_only: false
  -> persist: false
==> ISO SETTINGS:
  -> iso_version: 20171230
==> BUILD:
  -> iso_file: artix-lxqt-20171230-x86_64.iso
  -> autologin:
  -> netgroups: /netgroups-openrc.yaml
  -> hostname:
  -> username:
  -> password:
  -> addgroups:
  -> enable_live:
  -> openrc_boot:
  -> openrc_default:
[robin0800@robins-desktop ~]$ buildiso -p lxqt
==> Start building [lxqt]
==> Deleting isoroot [iso] ...
 --> Loading Packages: [Packages-Root] ...
==> Prepare [Base installation] (rootfs)
==> Creating install root at /var/lib/artools/buildiso/lxqt/x86_64/rootfs
  -> Installing packages to /var/lib/artools/buildiso/lxqt/x86_64/rootfs
:: Synchronizing package databases...
 system                                                  171.0 KiB  1554K/s 00:00 [##############################################] 100%
 world                                                   438.1 KiB  7.13M/s 00:00 [##############################################] 100%
 galaxy                                                   69.0 KiB  3.37M/s 00:00 [##############################################] 100%
 lib32                                                     6.9 KiB  0.00B/s 00:00 [##############################################] 100%
 extra                                                  1643.3 KiB  5.53M/s 00:00 [##############################################] 100%
 community                                                 4.3 MiB  11.8M/s 00:00 [##############################################] 100%
 multilib                                                169.2 KiB  8.26M/s 00:00 [##############################################] 100%
resolving dependencies...
looking for conflicting packages...

Total Installed Size:  851.46 MiB

:: Proceed with installation? [Y/n]
(206/206) checking keys in keyring                                                [##############################################] 100%
(206/206) checking package integrity                                              [##############################################] 100%
(206/206) loading package files                                                   [##############################################] 100%
(206/206) checking for file conflicts                                             [##############################################] 100%
(206/206) checking available disk space                                           [##############################################] 100%
:: Processing package changes...

:: Running post-transaction hooks...
(1/6) Updating linux-lts initcpios
==> Building image from preset: /etc/mkinitcpio.d/linux-lts.preset: 'default'
  -> -k /boot/vmlinuz-linux-lts -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-lts.img
==> Starting build: 4.9.70-1-lts
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [autodetect]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
  -> Running build hook: [filesystems]
  -> Running build hook: [keyboard]
  -> Running build hook: [fsck]
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: /boot/initramfs-linux-lts.img
==> Image generation successful
==> Building image from preset: /etc/mkinitcpio.d/linux-lts.preset: 'fallback'
  -> -k /boot/vmlinuz-linux-lts -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-lts-fallback.img -S autodetect
==> Starting build: 4.9.70-1-lts
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: aic94xx
==> WARNING: Possibly missing firmware for module: wd719x
  -> Running build hook: [filesystems]
  -> Running build hook: [keyboard]
  -> Running build hook: [fsck]
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: /boot/initramfs-linux-lts-fallback.img
==> Image generation successful
(2/6) Warn about old perl modules
(3/6) Displaying openrc service help ...
==> Add a service to runlevel:
rc-update add <service> <runlevel>
(4/6) Updating system users and groups
(5/6) Updating the info directory file...
(6/6) Rebuilding certificate stores...
 --> Setting locale ...
Generating locales...
  en_US.UTF-8... done
Generation complete.
  -> Cleaning [rootfs]
 --> Resetting locale ...
==> Done [Base installation] (rootfs)
 --> Loading Packages: [Packages-Live] ...
==> Prepare [Live installation] (livefs)
 --> overlayfs mount: [/var/lib/artools/buildiso/lxqt/x86_64/livefs]
==> Creating install root at /var/lib/artools/buildiso/lxqt/x86_64/livefs
  -> Installing packages to /var/lib/artools/buildiso/lxqt/x86_64/livefs
:: Synchronizing package databases...
 system                                                  171.0 KiB  1554K/s 00:00 [##############################################] 100%
 world                                                   438.1 KiB  6.11M/s 00:00 [##############################################] 100%
 galaxy                                                   69.0 KiB  3.37M/s 00:00 [##############################################] 100%
 lib32                                                     6.9 KiB  0.00B/s 00:00 [##############################################] 100%
 extra                                                  1643.3 KiB  2.59M/s 00:01 [##############################################] 100%
 community                                                 4.3 MiB  8.34M/s 00:01 [##############################################] 100%
 multilib                                                169.2 KiB  4.13M/s 00:00 [##############################################] 100%
resolving dependencies...
looking for conflicting packages...

Total Installed Size:  172.01 MiB

:: Proceed with installation? [Y/n]
(34/34) checking keys in keyring                                                  [##############################################] 100%
(34/34) checking package integrity                                                [##############################################] 100%
(34/34) loading package files                                                     [##############################################] 100%
(34/34) checking for file conflicts                                               [##############################################] 100%
(34/34) checking available disk space                                             [##############################################] 100%
:: Processing package changes...

:: Running post-transaction hooks...
(1/5) Updating linux module dependencies...
(2/5) Updating linux-lts initcpios
==> Building image from preset: /etc/mkinitcpio.d/linux-lts.preset: 'default'
  -> -k /boot/vmlinuz-linux-lts -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-lts.img
==> Starting build: 4.9.70-1-lts
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [autodetect]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
  -> Running build hook: [filesystems]
  -> Running build hook: [keyboard]
  -> Running build hook: [fsck]
==> ERROR: file not found: `fsck.overlay'
==> WARNING: No fsck helpers found. fsck will not be run on boot.
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: /boot/initramfs-linux-lts.img
==> WARNING: errors were encountered during the build. The image may not be complete.
==> Building image from preset: /etc/mkinitcpio.d/linux-lts.preset: 'fallback'
  -> -k /boot/vmlinuz-linux-lts -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-lts-fallback.img -S autodetect
==> Starting build: 4.9.70-1-lts
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: aic94xx
==> WARNING: Possibly missing firmware for module: wd719x
  -> Running build hook: [filesystems]
  -> Running build hook: [keyboard]
  -> Running build hook: [fsck]
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: /boot/initramfs-linux-lts-fallback.img
==> Image generation successful
error: command failed to execute correctly
(3/5) Updating linux initcpios...
==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'default'
  -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
==> Starting build: 4.14.6-1-ARTIX
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [autodetect]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
  -> Running build hook: [filesystems]
  -> Running build hook: [keyboard]
  -> Running build hook: [fsck]
==> ERROR: file not found: `fsck.overlay'
==> WARNING: No fsck helpers found. fsck will not be run on boot.
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: /boot/initramfs-linux.img
==> WARNING: errors were encountered during the build. The image may not be complete.
==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'fallback'
  -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-fallback.img -S autodetect
==> Starting build: 4.14.6-1-ARTIX
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: aic94xx
==> WARNING: Possibly missing firmware for module: wd719x
  -> Running build hook: [filesystems]
  -> Running build hook: [keyboard]
  -> Running build hook: [fsck]
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: /boot/initramfs-linux-fallback.img
==> Image generation successful
error: command failed to execute correctly
(4/5) Displaying openrc service help ...
==> Add a service to runlevel:
rc-update add <service> <runlevel>
(5/5) Updating system users and groups
 --> Setting locale ...
Generating locales...
  en_US.UTF-8... done
Generation complete.
  -> Copying [live-overlay] ...
==> Configuring [livefs]
  -> Configuring logind ...
 --> Configuring [openrc]
 --> Done configuring [openrc]
  -> Writing live.conf
==> Done configuring [livefs]
 --> overlayfs umount: [/var/lib/artools/buildiso/lxqt/x86_64/livefs]
  -> Cleaning [livefs]
 --> Resetting locale ...
==> Done [Live installation] (livefs)
==> Prepare [/iso/boot]
 --> overlayfs mount: [/var/lib/artools/buildiso/lxqt/x86_64/bootfs]
  -> Copying initcpio ...
==> Starting build: 4.14.6-1-ARTIX
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [artix_shutdown]
  -> Running build hook: [artix]
  -> Running build hook: [artix_loop_mnt]
  -> Running build hook: [artix_pxe_common]
  -> Running build hook: [artix_pxe_http]
  -> Running build hook: [artix_pxe_nbd]
  -> Running build hook: [artix_pxe_nfs]
  -> Running build hook: [artix_kms]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: aic94xx
==> WARNING: Possibly missing firmware for module: wd719x
  -> Running build hook: [pcmcia]
  -> Running build hook: [filesystems]
  -> Running build hook: [keyboard]
  -> Running build hook: [keymap]
==> Generating module dependencies
==> Creating xz-compressed initcpio image: /boot/initramfs.img
bsdcpio: Failed to set default locale

As you can see with both "cinnamon" and "lxqt" the "-qv" is empty at the bottom i.e no desktop info the following build ISO only builds
base 206 files and live 34 files with no desktop files.
@artoo
Title: Re: Build a desktop iso using Artools
Post by: artoo on 31 December 2017, 12:34:29
What is your problem? Upload your profile so we can have a look.

Here is a reference that works.
https://github.com/artix-linux/iso-profiles/tree/master/cinnamon
Title: Re: Build a desktop iso using Artools
Post by: robin0800 on 01 January 2018, 18:31:07
Found where the error is and it is not in profiles.
In "/usr/lib/artools/util-iso-profiles.sh" There appear to be two desktop lines missing?

Code: [Select]
desktop_list="${DATADIR}/iso-profiles/${profile}/Packages-Desktop" #add line 22
desktop_overlay="${DATADIR}/iso-profiles/${profile}/desktop-overlay"# add line 25
Note the use of "${profile}" to pick any profile invoked by buildiso including base.
Code: [Select]
[[ "$prof" != '$profile' ]] && profdir=${workspace_dir}/iso-profiles/$prof # edit line 14
Note you need to change "base" to "$profile as above. for this to work
Perhaps not the best or a perfect solution as buildiso -p profile -qv no longer works properly?

One further file is required to be edited
Code: [Select]
live_list="${DATADIR}/iso-profiles/${profile}/Packages-Live" # edit line 28

In summary files with "profile" pull from the DE profile and those with the "base" pull from the BASE profile
@artoo
Title: Re: Build a desktop iso using Artools
Post by: fungalnet on 02 January 2018, 08:27:47

I know this is your shop but still, don't you think it may be better not to get involved in discussion rather than act this way?

You know that I have been following this ever since you made the announcement in the Manja-forum, if not from Manja-OpenRc days.  If I have found ONE thing that turns me off about Artix is Artoo behavior!

Let's hope 2018 will be a better year for everyone
Title: Re: Build a desktop iso using Artools
Post by: artoo on 02 January 2018, 11:23:19
I know this is your shop but still, don't you think it may be better not to get involved in discussion rather than act this way?


Then stay out of it please, use a safe space whatever.

Its a waste of time, countless times told to Mr robin, that he got to provide more info than "its doesn't work".
I am really tired of having Q&A game to play to get to the basic information required, and I really dislike being pingeg with each post. I am not a consulting bot for private iso enterprises, I have a private life too..

Where are the profiles in question cloned into?
Title: Re: Build a desktop iso using Artools
Post by: robin0800 on 02 January 2018, 12:07:51
You run "buildiso -p DE" and whatever you put in as DE "buildiso -p DE -qv" says profile: DE this is where the info comes from.
Nothing else needs to change it just works.
 
Title: Re: Build a desktop iso using Artools
Post by: daemon on 02 January 2018, 12:44:39
Well, not for me. The Iso has 380MB and no DE.
Title: Re: Build a desktop iso using Artools
Post by: robin0800 on 02 January 2018, 13:33:03
Well, not for me. The Iso has 380MB and no DE.
Yes but you have to modify "/usr/lib/artools/util-iso-profiles.sh" as detailed in post #19 first and then it will work.
Title: Re: Build a desktop iso using Artools
Post by: daemon on 02 January 2018, 14:06:50
Ok I will try it.
Title: Re: Build a desktop iso using Artools
Post by: artoo on 02 January 2018, 15:38:40
Yes but you have to modify "/usr/lib/artools/util-iso-profiles.sh" as detailed in post #19 first and then it will work.


No you don't.
You simply did not clone the profiles in artools-workspace.
Title: Re: Build a desktop iso using Artools
Post by: robin0800 on 02 January 2018, 16:52:36
Having cloned iso-profiles to artools-workspace yes that works many thanks much easier than my solution.
The iso boots to grub menu but fails to boot to calamares the error message seems to be the same as two weeks ago when the artix lxqt iso would also fail here, this has now been fixed.
I guess the fix did not make it to the buildiso or perhaps its something else?
Title: Re: Build a desktop iso using Artools
Post by: robin0800 on 17 January 2018, 00:02:53
In my case it is the build iso in "Packages Live" in the "base" folder is a file " linux-lts-headers" why? If this is commented out the iso now boots to the live desktop.
Title: Re: Build a desktop iso using Artools
Post by: robin0800 on 05 February 2018, 02:42:38
See here how to do it ......................

https://wiki.artixlinux.org/Main/InstallationUsingBuildiso
Title: Re: Build a desktop iso using Artools
Post by: nous on 07 February 2018, 11:23:50
Great job! I've put the page at the side bar of the wiki, under "Advanced tasks".

Now we need a guide for creating bootable live images of existing Artix installations!
Title: Re: Build a desktop iso using Artools
Post by: robin0800 on 07 February 2018, 11:29:08
Great job! I've put the page at the side bar of the wiki, under "Advanced tasks".

Now we need a guide for creating bootable live images of existing Artix installations!

 Many thanks and some very good edits to the original page

The "artools" packages do not create the "artools-workspace" until buildiso is run, perhaps they should, hence the extra "buildiso -p profile -qv"
Have edited the wiki
link here https://wiki.artixlinux.org/Main/InstallationUsingBuildiso