+_grmllive_flavours() { #{{{
+ local expl
+ local -a flavours
+
+ flavours=(
+ grml grml64
+ grml-full grml64-full
+ grml-small grml64-small
+ )
+ _wanted list expl 'grml flavour(s)' compadd ${expl} -- ${flavours}
+}
+#}}}
+_grmllive_archs() { #{{{
+ local expl runningarch
+ local -a archs
+
+ runningarch="$(dpkg --print-architecture)"
+ archs=( ${runningarch} )
+ [[ ${runningarch} == 'amd64' ]] && archs=( ${archs} 'i386')
+ _wanted list expl 'target architecture' compadd ${expl} -- ${archs}
+}
+#}}}
+_grmllive_classes() { #{{{
+ local expl
+ local -a already static_classes
+
+ static_classes=(
+ DEBORPHAN FRESHCLAM
+ GRMLBASE GRML_FULL GRML_SMALL
+ LATEX LATEX_CLEANUP LOCALES NO_ONLINE RELEASE REMOVE_DOCS SOURCES XORG ZFS
+ I386 AMD64
+ )
+ compset -P '*,'
+ already=(${(s<,>)IPREFIX})
+ _wanted list expl 'classe(s)' compadd -S, -F already -q ${expl} -- \
+ /etc/grml/fai/config/class/*(.N:t:r) ${static_classes}
+}
+#}}}
+_grmllive_suites() { #{{{
+ local expl
+ local -a suites
+
+ suites=(
+ stable testing unstable bullseye bookworm sid
+ )
+ _wanted list expl 'Debian suite' compadd ${expl} -- ${suites}
+}
+#}}}
+arguments=( #{{{
+ '-a[specifiy architecture to use]:arch(s):_grmllive_archs'
+ '-A[clean build directories before and after running]'
+ '-b[build the ISO without updating the chroot via FAI]'
+ '-B[build the ISO without touching the chroot (skips cleanup)]'
+ '-c[available grml-live classes]:classe(s):_grmllive_classes'
+ '-C[configuration file for grml-live]:configuration file:_files'
+ '-d[use specified date instead of build time as date of release]:date:'
+ '-D[use specified configuration directory instead of /etc/grml/fai]:directory:_path_files -/'
+ '-e[extract ISO and squashfs contents from iso_name]:ISO file:'