Commit 52f68973 authored by Michael Shigorin's avatar Michael Shigorin

initial isomd5sum feature

This is a base for "media check" to become available: using this feature will implant a checksum into the image so that it can be verified during install. Also added a test/demo distro/live-isomd5sum target. For real distros an alterator module is probably due.
parent f257b8e9
......@@ -5,6 +5,9 @@ distro/live: distro/.base use/live/base use/power/acpi/cpufreq
distro/rescue: distro/.base use/rescue use/syslinux/ui-menu
distro/dos: distro/.init use/dos use/syslinux/ui-menu
distro/live-isomd5sum: distro/.base use/live/base use/isomd5sum
@$(call add,LIVE_PACKAGES,livecd-isomd5sum)
distro/live-builder: distro/.base sub/main \
use/live/base use/dev/mkimage use/power/acpi/button
@$(call add,LIVE_LISTS,$(call tags,base && (server || builder)))
......
Эта фича конфигурирует внедрение контрольной суммы в образ
инсталятора после его сборки с целью проверки целостности
на ранней стадии установки.
use/isomd5sum:
@$(call add,FEATURES,isomd5sum)
@$(call add,POSTPROCESS_TARGETS,isomd5sum)
CHROOT_PACKAGES += isomd5sum
postprocess-isomd5sum:
@implantisomd5 "$(IMAGEDIR)/$(IMAGE_OUTFILE)"
......@@ -47,7 +47,7 @@ pack-image: imagedir
imagedir:
@mkdir -p "$(IMAGEDIR)"
postprocess:
postprocess: $(addprefix postprocess-,$(POSTPROCESS_TARGETS))
@OUTPATH="$(IMAGEDIR)/$(IMAGE_OUTFILE)"; \
echo "** image: $$OUTPATH" >&2 && \
ln -sf "$(IMAGE_OUTFILE)" "$(IMAGEDIR)/$(IMAGE_LINK)" && \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment