OSDN Git Service

[update] : revert
[alterlinux/LUBS.git] / lubs
1 #!/usr/bin/env bash
2
3 set -e
4 # set -u
5
6 export LANG=C
7
8 script_path=$(readlink -f ${0%/*})
9
10 cache_dir="${script_path}/cache"
11 channels_dir="${script_path}/channels"
12 isolinux_dir="${script_path}/isolinux"
13
14 codename="focal"
15 mirror="http://ftp.jaist.ac.jp/pub/Linux/ubuntu/"
16 os_name="Ubuntu"
17 iso_name="ubuntu"
18
19 arch=amd64
20 work_dir="${script_path}/work"
21 out_dir="${script_path}/out"
22 iso_label="${os_name}_${codename}_${arch}"
23 iso_publisher='Fascode Network <https://fascode.net>'
24 iso_application="${os_name} Live/Rescue CD"
25 iso_version="${codename}-$(date +%Y.%m.%d)"
26 iso_filename="${iso_name}-${iso_version}-${arch}.iso"
27
28 channel_name="serene"
29
30 username="liveuser"
31 password="liveuser"
32 usershell="/bin/bash"
33
34 debug=false
35 cache_only=false
36
37
38 start_time="$(date +%s)"
39
40 _msg_common() {
41     if [[ "${debug}" = true ]]; then
42         local _current_time="$(date +%s)"
43         local _time
44
45         _time="$(("${_current_time}"-"${start_time}"))"
46
47         if [[ "${_time}" -ge 3600 ]]; then
48             echo "[$(date -d @${_time} +%H:%M.%S)]$("${script_path}/echo_color" -t 6 "[LUBS Core]")"
49         elif [[ "${_time}" -ge 60 ]]; then
50             echo "[00:$(date -d @${_time} +%M.%S)]$("${script_path}/echo_color" -t 6 "[LUBS Core]")"
51         else
52             echo "[00:00.$(date -d @${_time} +%S)] $("${script_path}/echo_color" -t 6 "[LUBS Core]")"
53         fi
54     else
55         "${script_path}/echo_color" -t 6 "[LUBS Core]"
56     fi
57 }
58
59 # Show an INFO message
60 # _msg_info <message>
61 _msg_info() {
62     local _msg="${@}"
63     echo "$(_msg_common)  $("${script_path}/echo_color" -t 2 "Info:") ${_msg}"
64 }
65
66 # Show an debug message
67 # _msg_debug <message>
68 _msg_debug() {
69     if [[ "${debug}" = true ]]; then
70         local _msg="${@}"
71         echo "$(_msg_common)  $("${script_path}/echo_color" -t 3 "Debug:") ${_msg}"
72     fi
73 }
74
75 # Show an ERROR message then exit with status
76 # _msg_error <message> <exit code>
77 _msg_error() {
78     local _msg="${1}"
79     local _error=${2}
80     echo "$(_msg_common)  $("${script_path}/echo_color" -t 1 "Error:") ${_msg}"
81     if [[ ! ${_error} = 0 ]]; then
82         exit ${_error}
83     fi
84 }
85
86 # Unmount chroot dir
87 umount_chroot () {
88     local mount
89     for mount in $(mount | awk '{print $3}' | grep $(realpath ${work_dir}) | sort -r); do
90         _msg_info "Unmounting ${mount}"
91         umount -fl "${mount}"
92     done
93 }
94
95 # Helper function to run make_*() only one time.
96 run_once() {
97     local name
98     umount_chroot
99
100     if [[ "run_bootfiles" == "$1" ]]; then
101         name="$2"
102     else
103         name="$1"
104     fi
105
106     if [[ ! -e "${work_dir}/build.${name}" ]]; then
107         _msg_info "$(echo $name | sed "s@_@ @g") is starting."
108
109         if [[ "run_bootfiles" == "$1" ]]; then
110             "$1" "$2"
111         else
112             "$1"
113         fi
114
115         _msg_info "$(echo $name | sed "s@_@ @g") was done!"
116         touch "${work_dir}/build.${name}"
117     fi
118 }
119
120 run_cmd() {
121     local mount
122     for mount in "dev" "dev/pts" "proc" "sys" "run/systemd/resolve/stub-resolv.conf"; do
123         [[ "${mount}" == "run/systemd/resolve/stub-resolv.conf" ]] && mount --bind /etc/resolv.conf "${work_dir}/airootfs/${mount}" || mount --bind /${mount} "${work_dir}/airootfs/${mount}"
124     done
125     chroot "${work_dir}/airootfs" "${@}"
126     for mount in $(mount | awk '{print $3}' | grep $(realpath ${work_dir}) | sort -r); do
127         umount -fl "${mount}"
128     done
129 }
130
131 run_bootfiles() {
132     cd "${bootfiles_dir}"
133     "$1"
134     cd - > /dev/null
135 }
136
137 _apt_install() {
138     run_cmd apt-get --no-install-recommends --yes install ${@}
139 }
140
141 # rm helper
142 # Delete the file if it exists.
143 # For directories, rm -rf is used.
144 # If the file does not exist, skip it.
145 # remove <file> <file> ...
146 remove() {
147     local _list
148     local _file
149     _list=($(echo "$@"))
150     for _file in "${_list[@]}"; do
151         _msg_debug "Removeing ${_file}"
152         if [[ -f ${_file} ]]; then
153             rm -f "${_file}"
154         elif [[ -d ${_file} ]]; then
155             rm -rf "${_file}"
156         fi
157     done
158 }
159
160 # Show help
161 _usage () {
162     echo "usage ${0} [options] [channel]"
163     echo
164     echo " General options:"
165     echo
166     echo "    -a | --arch <str>      Set architecture"
167     echo "                           Default: ${arch}"
168     echo "    -c | --codename <str>  Set ubuntu codename"
169     echo "                           Default: ${codename}"
170     echo "    -m | --mirror <url>    Set apt mirror server."
171     echo "                           Default: ${mirror}"
172     echo "    -o | --out <out_dir>   Set the output directory"
173     echo "                           Default: ${out_dir}"
174     echo "    -w | --work <work_dir> Set the working directory"
175     echo "                           Default: ${work_dir}"
176     echo
177     echo "    -d | --debug           "
178     echo "    -h | --help            This help message and exit"
179     echo
180     echo "You can switch between installed packages, files included in images, etc. by channel."
181     echo
182     echo " Channel:"
183     local _channel
184     local channel_list
185     local description
186     for _channel in $(ls -l "${channels_dir}" | awk '$1 ~ /d/ {print $9 }'); do
187         if [[ -n $(ls "${channels_dir}/${_channel}") ]] && [[ ! "${_channel}" = "share" ]]; then
188             channel_list="${channel_list[@]} ${_channel}"
189         fi
190     done
191     for _channel in ${channel_list[@]}; do
192         if [[ -f "${channels_dir}/${_channel}/description.txt" ]]; then
193             description=$(cat "${channels_dir}/${_channel}/description.txt")
194         else
195             description="This channel does not have a description.txt."
196         fi
197         echo -ne "    ${_channel}"
198         for i in $( seq 1 $(( 23 - ${#_channel} )) ); do
199             echo -ne " "
200         done
201         echo -ne "${description}\n"
202     done
203 }
204
205
206 prepare_build() {
207     if [[ ${EUID} -ne 0 ]]; then
208         _msg_error "This script must be run as root." 1
209     fi
210     
211     [[ ! -d "${work_dir}" ]] && mkdir -p "${work_dir}"
212     [[ ! -d "${out_dir}" ]] && mkdir -p "${out_dir}"
213
214     umount_chroot 
215
216     # Check codename
217     if [[ -z $(grep -h -v ^'#' ${channels_dir}/${channel_name}/codename.${arch} | grep -x ${codename}) ]]; then
218         _msg_error "This codename (${channel_name}) is not supported on this channel (${codename})."
219     fi
220
221 }
222
223
224 make_basefs() {
225     local debootstrap_status
226     statusfile="${cache_dir}/${codename}/status"
227
228     debootstrap_status() {
229         if [[ ! -d "$(dirname ${statusfile})" ]]; then
230             mkdir -p "$(dirname ${statusfile})"
231         fi
232         echo "${1}" > "${statusfile}"
233     }
234
235     if [[ -f "${statusfile}" ]] && [[ $(cat "${statusfile}" 2> /dev/null) = "Done" ]]; then
236         _msg_info "${codename} cache is found."
237     else
238         remove "${cache_dir}/${codename}"
239         debootstrap_status "Running"
240         _msg_info "Installing Ubuntu to '${cache_dir}/${codename}/airootfs'..."
241         mkdir -p "${cache_dir}/${codename}/airootfs"
242         debootstrap --arch=${arch} --include=linux-image-generic  --verbose --merged-usr "${codename}" "${cache_dir}/${codename}/airootfs" ${mirror}
243         _msg_info "${codename} installed successfully!"
244         debootstrap_status "Done"
245     fi
246     if [[ "${cache_only}" = true ]]; then
247         exit 0
248     fi
249     
250     rm -rf "${work_dir}/airootfs" && mkdir -p "${work_dir}/airootfs"
251     _msg_info "copy base files from '${cache_dir}/${codename}/airootfs' to '${work_dir}/airootfs'..."
252     rsync  -au "${cache_dir}/${codename}/airootfs/" "${work_dir}/airootfs"
253     echo 'PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:${PATH}' >> "${work_dir}/airootfs/etc/bash.bashrc"
254     run_cmd apt-get update
255     # run_cmd apt-get upgrade
256 }
257
258 make_sourcelist() {
259     cp ${script_path}/source.list.d/${codename}/* ${work_dir}/airootfs/etc/apt
260     sed -i "s@http://archive.ubuntu.com/ubuntu/@${mirror}@g"  ${work_dir}/airootfs/etc/apt/sources.list
261     run_cmd apt-get update
262
263     if [[ -n $(find ${channels_dir}/*/repo -type f) ]]; then
264         _apt_install gnupg
265
266         for repo in $(find ${channels_dir}/*/repo -name *.list); do
267             key="$(dirname ${repo})/$(basename ${repo} | sed "s/list/key/")"
268             
269             if [[ -f "${key}" ]]; then
270                 if $(file ${key} | grep -q "PGP/GPG key"); then
271                     cp ${key} ${work_dir}/airootfs/$(basename ${key})
272                 else
273                     wget -q -O ${work_dir}/airootfs/$(basename ${key}) $(cat ${key})
274                 fi
275
276                 run_cmd apt-key add $(basename ${key})
277                 rm ${work_dir}/airootfs/$(basename ${key})
278                 cp ${repo} ${work_dir}/airootfs/etc/apt/sources.list.d
279             fi
280         done
281
282         run_cmd apt-get update
283     fi
284     
285     # PPA
286     local PPA_FILELIST
287     local _PPA_FILE
288     local _ppa
289
290     PPA_FILELIST=("${channels_dir}/share/ppa_list.${arch}" "${channels_dir}/${channel_name}/ppa_list.${arch}")
291     _apt_install software-properties-common
292     for _PPA_FILE in ${PPA_FILELIST[@]}; do
293         if [[ -f "${_PPA_FILE}" ]]; then
294             for _ppa in $(grep -h -v ^'#' ${_PPA_FILE}); do
295                 run_cmd add-apt-repository --yes "${_ppa}"
296             done
297         fi
298     done
299 }
300
301 make_systemd() {
302     _apt_install systemd-sysv
303     run_cmd dbus-uuidgen --ensure=/etc/machine-id
304     run_cmd ln -sf /etc/machine-id /var/lib/dbus/machine-id
305 }
306
307 make_apt_packages() {
308     remove "${work_dir}/airootfs/aptpkglist"
309
310     if [[ -f "${channels_dir}/share/packages.${arch}" ]]; then
311         grep -h -v ^'#' "${channels_dir}/share/packages.${arch}" | grep -v "^$" >> "${work_dir}/airootfs/aptpkglist"
312     fi
313     if [[ -f "${channels_dir}/${channel_name}/packages.${arch}" ]]; then
314         grep -h -v ^'#' "${channels_dir}/${channel_name}/packages.${arch}" | grep -v "^$" >> "${work_dir}/airootfs/aptpkglist"
315     fi
316     if [[ -n "$(echo $(<"${work_dir}/airootfs/aptpkglist"))" ]]; then
317         run_cmd env -i bash -c 'DEBIAN_FRONTEND=noninteractive apt-get --no-install-recommends --yes install $(echo $(<aptpkglist))'
318     fi
319     remove "${work_dir}/airootfs/aptpkglist"
320 }
321
322 make_snap_packages() {
323     remove "${work_dir}/airootfs/snappkglist"
324
325     if [[ -f "${channels_dir}/share/snap-packages.${arch}" ]]; then
326         grep -h -v ^'#' "${channels_dir}/share/snap-packages.${arch}" | grep -v "^$" >> "${work_dir}/airootfs/snappkglist"
327     fi
328     if [[ -f "${channels_dir}/${channel_name}/snap-packages.${arch}" ]]; then
329         grep -h -v ^'#' "${channels_dir}/${channel_name}/snap-packages.${arch}" | grep -v "^$" >> "${work_dir}/airootfs/snappkglist"
330     fi
331     if [[ -n "$(echo $(<"${work_dir}/airootfs/snappkglist"))" ]]; then
332         _apt_install snapd
333         run_cmd env -i bash -c 'snap install $(echo $(<snappkglist))'
334     fi
335     remove "${work_dir}/airootfs/snappkglist"
336 }
337
338 make_config() {
339     # Locales
340     run_cmd env -i bash -c 'DEBIAN_FRONTEND=noninteractive LANG=en_US.UTF-8 LC_ALL=C LANGUAGE=en_US.UTF-8 dpkg-reconfigure locales'
341
342     # resolvconf
343     run_cmd env -i bash -c 'DEBIAN_FRONTEND=noninteractive dpkg-reconfigure resolvconf'
344
345     # NetworkManager
346     cp ${channels_dir}/share/airootfs/etc/NetworkManager/NetworkManager.conf ${work_dir}/airootfs/etc/NetworkManager/NetworkManager.conf
347
348     # Timezone
349     #run_cmd echo -ne "UTC" > '/etc/timezone'
350     #run_cmd dpkg-reconfigure -f noninteractive tzdata
351
352     run_cmd env -i bash -c 'DEBIAN_FRONTEND=noninteractive dpkg-reconfigure network-manager'
353     run_cmd truncate -s 0 /etc/machine-id
354 }
355
356 make_customize_airootfs() {
357     #-- Overwrite airootfs files --#
358     local copy_airootfs
359     copy_airootfs() {
360         local _dir="${1%/}"
361         if [[ -d "${_dir}" ]]; then
362             cp -af "${_dir}"/* "${work_dir}/airootfs"
363         fi
364     }
365     copy_airootfs "${channels_dir}/share/airootfs"
366     copy_airootfs "${channels_dir}/${channel_name}/airootfs"
367
368
369     #-- Run scripts --#
370     local _customize_siript_options="-a ${arch} -u '${username}' -p '${password}' -s '${usershell}'"
371     if ${bash_debug}; then
372         _customize_siript_options="$_customize_siript_options -x"
373     elif ${debug}; then
374         _customize_siript_options="$_customize_siript_options -d"
375     fi
376
377     # run_customize_script <script path from lubs> <script path in chroot>
378     local run_customize_script
379     run_customize_script() {
380         if [[ -f "${1}" ]]; then
381             chmod 755 "${1}"
382             run_cmd "${2} ${_customize_siript_options}"
383         fi
384     }
385     run_customize_script "${work_dir}/airootfs/root/customize_airootfs.sh" "/root/customize_airootfs.sh"
386     run_customize_script "${work_dir}/airootfs/root/customize_airootfs_${channel_name}.sh"  "/root/customize_airootfs_${channel_name}.sh"
387 }
388
389 make_clean() {
390     sed -i "s@${mirror}@http://archive.ubuntu.com/ubuntu/@g"  ${work_dir}/airootfs/etc/apt/sources.list
391     run_cmd apt-get update
392     run_cmd apt-get clean
393     run_cmd apt-get --yes autoremove
394     run_cmd rm -rf "/tmp/* ~/.bash_history"
395 }
396
397 make_bootfiles() {
398     run_cmd env -i bash -c 'update-initramfs -c -k all'
399     _apt_install memtest86+
400     [[ -d "${bootfiles_dir}" ]] && rm -r "${bootfiles_dir}"
401     mkdir -p ${bootfiles_dir}/{casper,isolinux,install}
402     cp "${work_dir}/airootfs/boot/vmlinuz" "${bootfiles_dir}/casper/vmlinuz"
403     cp "${work_dir}/airootfs/boot/initrd.img" "${bootfiles_dir}/casper/initrd"
404     cp "${work_dir}/airootfs/boot/memtest86+.bin" "${bootfiles_dir}/install/memtest86+"
405
406     if [[ ! -f "${cache_dir}/memtest86-usb.zip" ]]; then
407         wget -O ${cache_dir}/memtest86-usb.zip https://www.memtest86.com/downloads/memtest86-usb.zip
408     fi
409
410     (unzip -p ${cache_dir}/memtest86-usb.zip memtest86-usb.img > ${bootfiles_dir}/install/memtest86)
411 }
412
413 make_grubcfg() {
414     touch "${bootfiles_dir}/ubuntu"
415     cp ${isolinux_dir}/grub.cfg ${bootfiles_dir}/isolinux/grub.cfg
416 }
417
418 make_manifest() {
419     run_cmd dpkg-query -W --showformat='${Package} ${Version}\n' | tee ${bootfiles_dir}/casper/filesystem.manifest
420     cp -v ${bootfiles_dir}/casper/filesystem.manifest "${bootfiles_dir}/casper/filesystem.manifest-desktop"
421     sed -i '/ubiquity/d' "${bootfiles_dir}/casper/filesystem.manifest-desktop"
422     sed -i '/casper/d' "${bootfiles_dir}/casper/filesystem.manifest-desktop"
423     sed -i '/discover/d' "${bootfiles_dir}/casper/filesystem.manifest-desktop"
424     sed -i '/laptop-detect/d' "${bootfiles_dir}/casper/filesystem.manifest-desktop"
425     sed -i '/os-prober/d' "${bootfiles_dir}/casper/filesystem.manifest-desktop"
426 }
427
428 make_squashfs() {
429     mksquashfs "${work_dir}/airootfs" "${bootfiles_dir}/casper/filesystem.squashfs"
430     printf $(du -sx --block-size=1 "${work_dir}/airootfs" | cut -f1) > ${bootfiles_dir}/casper/filesystem.size
431 }
432
433 make_deifnes() {
434     cp ${isolinux_dir}/README.diskdefines ${bootfiles_dir}/README.diskdefines
435 }
436
437 make_isolinux() {
438     if [[ "${arch}" = "amd64" ]]; then
439         local _arch="x86_64"
440     else
441         local _arch="${arch}"
442     fi
443     grub-mkstandalone \
444         --format=${_arch}-efi \
445         --output=isolinux/bootx64.efi \
446         --locales="" \
447         --fonts="" \
448         "boot/grub/grub.cfg=isolinux/grub.cfg"
449     (
450         cd isolinux && \
451         dd if=/dev/zero of=efiboot.img bs=1M count=10 && \
452         sudo mkfs.vfat efiboot.img && \
453         LC_CTYPE=C mmd -i efiboot.img efi efi/boot && \
454         LC_CTYPE=C mcopy -i efiboot.img ./bootx64.efi ::efi/boot/
455     )
456     grub-mkstandalone \
457         --format=i386-pc \
458         --output=isolinux/core.img \
459         --install-modules="linux16 linux normal iso9660 biosdisk memdisk search tar ls" \
460         --modules="linux16 linux normal iso9660 biosdisk search" \
461         --locales="" \
462         --fonts="" \
463         --themes="" \
464         "boot/grub/grub.cfg=isolinux/grub.cfg"
465     cat /usr/lib/grub/i386-pc/cdboot.img isolinux/core.img > isolinux/bios.img
466 }
467
468 make_md5sum() {
469     /bin/bash -c "(find . -type f -print0 | xargs -0 md5sum | grep -v "\./md5sum.txt" > md5sum.txt)"
470 }
471
472 make_iso() {
473     xorriso \
474         -as mkisofs \
475         -iso-level 3 \
476         -full-iso9660-filenames \
477         -volid "${iso_label}" \
478         -appid "${iso_application}" \
479         -publisher "${iso_publisher}" \
480         -preparer "prepared by LUBS" \
481         -eltorito-boot boot/grub/bios.img \
482         -no-emul-boot \
483         -boot-load-size 4 \
484         -boot-info-table \
485         --eltorito-catalog boot/grub/boot.cat \
486         --grub2-boot-info \
487         --grub2-mbr /usr/lib/grub/i386-pc/boot_hybrid.img \
488         -eltorito-alt-boot \
489         -e EFI/efiboot.img \
490         -no-emul-boot \
491         -append_partition 2 0xef isolinux/efiboot.img \
492         -output "${out_dir}/${iso_filename}" \
493         -graft-points \
494             "." \
495             /boot/grub/bios.img=isolinux/bios.img \
496             /EFI/efiboot.img=isolinux/efiboot.img
497 }
498
499 make_checksum() {
500     cd ${out_dir}
501     _msg_info "Creating md5 checksum ..."
502     md5sum "${iso_filename}" > "${iso_filename}.md5"
503
504     _msg_info "Creating sha256 checksum ..."
505     sha256sum "${iso_filename}" > "${iso_filename}.sha256"
506     cd - > /dev/null 2>&1
507 }
508
509
510 # 引数解析()
511 # 参考記事:https://0e0.pw/ci83 https://0e0.pw/VJlg
512
513 _opt_short="w:o:ha:-:m:c:d"
514 _opt_long="help,arch:,codename:,debug,help,mirror:,out:,work,cache-only"
515 OPT=$(getopt -o ${_opt_short} -l ${_opt_long} -- "${@}")
516 if [[ ${?} != 0 ]]; then
517     exit 1
518 fi
519 eval set -- "${OPT}"
520 while :; do
521     case ${1} in
522         -a | --arch)
523             if [[ -z ${2} ]]; then
524                 _msg_error "Please specify the architecture."
525                 exit 1
526             else
527                 arch="${2}"
528             fi
529             shift 2
530             ;;
531         -c | --codename)
532             if [[ -z ${2} ]]; then
533                 _msg_error "Please specify the codename."
534                 exit 1
535             else
536                 codename="${2}"
537             fi
538             shift 2
539             ;;
540         -d | --debug)
541             debug=true
542             shift 1
543             ;;
544         -h | --help)
545             _usage
546             exit 0
547             ;;
548         -m | --mirror)
549             if [[ -z ${2} ]]; then
550                 _msg_error "Please specify the mirror server."
551                 exit 1
552             else
553                 mirror="${2}"
554             fi
555             shift 2
556             ;;
557         -o | --out)
558             if [[ -z ${2} ]]; then
559                 _msg_error "Please specify the out dir."
560                 exit 1
561             else
562                 out_dir="${2}"
563             fi
564             shift 2
565             ;;
566         -w | --work)
567             if [[ -z ${2} ]]; then
568                 _msg_error "Please specify the out dir."
569                 exit 1
570             else
571                 work_dir="${2}"
572             fi
573             shift 2
574             ;;
575         --cache-only)
576             cache_only=true
577             shift 1
578             ;;
579         --)
580             shift
581             break
582             ;;
583         *)
584             _msg_error "Invalid argument '${1}'"
585             _usage 1
586             ;;
587     esac
588 done
589
590 bootfiles_dir="${work_dir}/bootfiles"
591 trap  umount_chroot 0 2 15
592
593 if [[ -n "${1}" ]]; then
594     channel_name="${1}"
595
596     check_channel() {
597         local channel_list
598         local i
599         channel_list=()
600         for _channel in $(ls -l "${channels_dir}" | awk '$1 ~ /d/ {print $9 }'); do
601             if [[ -n $(ls "${channels_dir}/${_channel}") ]] && [[ ! "${_channel}" = "share" ]]; then
602                 channel_list="${channel_list[@]} ${_channel}"
603             fi
604         done
605         for i in ${channel_list[@]}; do
606             if [[ "${i}" = "${channel_name}" ]]; then
607                 echo -n "true"
608                 return 0
609             fi
610         done
611         echo -n "false"
612         return 1
613     }
614
615     if [[ $(check_channel ${channel_name}) = false ]]; then
616         _msg_error "Invalid channel ${channel_name}"
617         exit 1
618     fi
619 fi
620
621
622 prepare_build
623 run_once make_basefs
624 run_once make_sourcelist
625 run_once make_systemd
626 run_once make_apt_packages
627 #run_once make_snap_packages
628 run_once make_config
629 run_once make_customize_airootfs
630 run_once make_clean
631 run_once make_bootfiles
632 run_once make_grubcfg
633 run_once make_manifest
634 run_once make_squashfs
635 run_once make_deifnes
636 run_once run_bootfiles make_isolinux
637 run_once run_bootfiles make_md5sum
638 run_once run_bootfiles make_iso
639 run_once make_checksum