diff options
author | Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar> | 2010-03-16 20:38:22 -0300 |
---|---|---|
committer | Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar> | 2010-03-17 10:03:25 -0300 |
commit | d875052f56f236ba2e8e6a7085ddb57258e1ead3 (patch) | |
tree | e50faf0d68a19cad6469c5f20ca2dda03b42e3da /configs/syslinux-iso/Makefile | |
parent | 0a7c87e508a3d54aec2c1b57ede6c9b0dba006f7 (diff) | |
download | archiso32-d875052f56f236ba2e8e6a7085ddb57258e1ead3.tar.xz |
[syslinux-iso] Set iso and kernel version dynamically.
Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
Diffstat (limited to 'configs/syslinux-iso/Makefile')
-rw-r--r-- | configs/syslinux-iso/Makefile | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/configs/syslinux-iso/Makefile b/configs/syslinux-iso/Makefile index 9368d1e..04c2de1 100644 --- a/configs/syslinux-iso/Makefile +++ b/configs/syslinux-iso/Makefile @@ -1,5 +1,4 @@ -ver=2010.03 -kver=2.6.32-ARCH +ver=$(shell date +%Y.%m.%d) WORKDIR=work @@ -11,6 +10,8 @@ COREname=$(PWD)/archlinux-$(ver)-core-$(ARCH).iso PACKAGES="$(shell cat packages.$(ARCH))" +kver_FILE=$(WORKDIR)/root-image/etc/mkinitcpio.d/kernel26.kver + all: net-iso core-iso # Rules for each type of image @@ -48,7 +49,7 @@ bootfiles: root-image initcpio: $(WORKDIR)/iso/boot/archiso.img $(WORKDIR)/iso/boot/archiso.img: mkinitcpio.conf $(WORKDIR)/root-image/.arch-chroot 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 |