[syslinux-iso] Set iso and kernel version dynamically.
Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
This commit is contained in:
parent
0a7c87e508
commit
d875052f56
@ -1,5 +1,4 @@
|
|||||||
ver=2010.03
|
ver=$(shell date +%Y.%m.%d)
|
||||||
kver=2.6.32-ARCH
|
|
||||||
|
|
||||||
WORKDIR=work
|
WORKDIR=work
|
||||||
|
|
||||||
@ -11,6 +10,8 @@ COREname=$(PWD)/archlinux-$(ver)-core-$(ARCH).iso
|
|||||||
|
|
||||||
PACKAGES="$(shell cat packages.$(ARCH))"
|
PACKAGES="$(shell cat packages.$(ARCH))"
|
||||||
|
|
||||||
|
kver_FILE=$(WORKDIR)/root-image/etc/mkinitcpio.d/kernel26.kver
|
||||||
|
|
||||||
all: net-iso core-iso
|
all: net-iso core-iso
|
||||||
|
|
||||||
# Rules for each type of image
|
# Rules for each type of image
|
||||||
@ -48,7 +49,7 @@ bootfiles: root-image
|
|||||||
initcpio: $(WORKDIR)/iso/boot/archiso.img
|
initcpio: $(WORKDIR)/iso/boot/archiso.img
|
||||||
$(WORKDIR)/iso/boot/archiso.img: mkinitcpio.conf $(WORKDIR)/root-image/.arch-chroot
|
$(WORKDIR)/iso/boot/archiso.img: mkinitcpio.conf $(WORKDIR)/root-image/.arch-chroot
|
||||||
mkdir -p $(WORKDIR)/iso/boot
|
mkdir -p $(WORKDIR)/iso/boot
|
||||||
mkinitcpio -c ./mkinitcpio.conf -b $(WORKDIR)/root-image -k $(kver) -g $@
|
mkinitcpio -c ./mkinitcpio.conf -b $(WORKDIR)/root-image -k $(shell grep ^ALL_kver $(kver_FILE) | cut -d= -f2) -g $@
|
||||||
|
|
||||||
|
|
||||||
# overlay filesystem
|
# overlay filesystem
|
||||||
|
Loading…
Reference in New Issue
Block a user