/**
 * depCommon
 * depArch
 * depVersion
 * depInit
 */ param packages export function array2comma ( packages ) { let commaSep = '' ; const last = packages . length ; for ( let i = 0 ; i < last ; i ++ ) { commaSep += packages [ i ] ; if ( i < last - 1 ) { commaSep += ', ' ; } } return commaSep ; } param packages returns export function array2spaced ( packages ) { let spaced = '' ; for ( const i in packages ) { spaced += packages [ i ] + ' ' ; } return spaced ; } /**
 * common dependencies
 * removable: isolinux live-boot live-boot-doc live-boot-initramfs-tools live-tools syslinux syslinux-common
 * sudo apt purge cryptsetup dosfstools dpkg-dev isolinux live-boot live-boot-initramfs-tools  squashfs-tools syslinux-common coreutils xorriso
 */ export const depCommon = [ 'cryptsetup' , 'dosfstools' , 'dpkg-dev' , 'isolinux' , 'live-boot' , 'live-boot-initramfs-tools' , 'parted' , 'rsync' , 'squashfs-tools' , 'syslinux-common' , 'coreutils' , 'xorriso' ] ; /**
 * Dependencies for architectures
 */ export const depArch = [ { package : 'syslinux' , arch : [ 'amd64' , 'i386' ] } , { package : 'syslinux-efi' , arch : [ 'arm64' , 'armel' ] } ] ; /**
 * dependencies for versions
 *
 */ export const depVersions = [ { package : 'live-config' , versions : [ 'jessie' , 'stretch' ] } , { package : 'live-config-systemd' , versions : [ 'jessie' , 'stretch' , 'buster' ] } , { package : 'live-config-sysvinit' , versions : [ 'beowulf' ] } , { package : 'open-infrastructure-system-config' , versions : [ 'bionic' ] } ] ; /**
 * dependecies for init
 *
 * We need for buster derivate with systemd and using sysvinit
 * like MX-LINUX and probably others
 *
 */ export const depInit = [ { package : 'live-config-sysvinit' , init : 'sysvinit' } ] ;