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.
This commit is contained in:
Michael Shigorin 2011-11-10 21:15:50 +02:00
parent f257b8e9df
commit 52f6897318
5 changed files with 14 additions and 1 deletions

View File

@ -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)))

View File

@ -0,0 +1,3 @@
Эта фича конфигурирует внедрение контрольной суммы в образ
инсталятора после его сборки с целью проверки целостности
на ранней стадии установки.

View File

@ -0,0 +1,3 @@
use/isomd5sum:
@$(call add,FEATURES,isomd5sum)
@$(call add,POSTPROCESS_TARGETS,isomd5sum)

View File

@ -0,0 +1,4 @@
CHROOT_PACKAGES += isomd5sum
postprocess-isomd5sum:
@implantisomd5 "$(IMAGEDIR)/$(IMAGE_OUTFILE)"

View File

@ -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)" && \