MEDIA_TYPE = CD-ROM
 
TYPE = netboot

TARGET = $(TEMP_BOOT) $(MINIISO)

MANIFEST-MINIISO = "tiny bootable CD image for pure network install"
 
.PHONY: arch_miniiso arch_boot_screens arch_boot
arch_miniiso:
	-rm -rf $(TEMP_CD_TREE)/*
	install -m 644 -D $(TEMP)/initrd.gz $(TEMP_CD_TREE)/boot/initrd.gz
	install -m 644 -D $(TEMP)/vmlinuz $(TEMP_CD_TREE)/boot/vmlinuz-sparc64
	install -m 644 /boot/second.b $(TEMP_CD_TREE)/boot
	install -m 644 $(TEMP_BOOT_SCREENS)/ubuntu.txt $(TEMP_CD_TREE)/boot
	install -m 644 boot/sparc/silo.conf $(TEMP_CD_TREE)/boot
 
	genisoimage -r -J -o $(TEMP_MINIISO) -G /boot/isofs.b -B ... $(TEMP_CD_TREE)

arch_boot_screens:
	-rm -f $(TEMP_BOOT_SCREENS)/*
	mkdir -p $(TEMP_BOOT_SCREENS)
	bootvars-subst MEDIA_TYPE "$(MEDIA_TYPE)" \
		DISTRIBUTION_NAME "$(DISTRIBUTION_NAME)" \
		DEBIAN_VERSION "$(DEBIAN_VERSION)" \
		BUILD_DATE "$(BUILD_DATE)" \
		< boot/sparc/ubuntu.txt > $(TEMP_BOOT_SCREENS)/ubuntu.txt

arch_boot:
