blob: 7a1429894455f6762c1990e10fe9bac2578fc0df (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
ver=2008.10
kver=2.6.27-ARCH
#Define outside of 'make' for other arches
ARCH=i686
PWD=`pwd`
FTPname=$(PWD)/archlinux-$(ver)-ftp-$(ARCH)
COREname=$(PWD)/archlinux-$(ver)-core-$(ARCH)
all: core-iso core-usb ftp-iso ftp-usb
all-iso: core-iso ftp-iso
all-usb: core-usb ftp-usb
core-usb: core-pkgs root-image boot-files
mkarchiso -v -p grub-gfx -t disk image image-dir/ $(COREname).img
core-iso: core-pkgs root-image boot-files
mkarchiso -v -p grub-gfx image image-dir/ $(FTPname).iso
ftp-usb: root-image boot-files
mkarchiso -v -p grub-gfx -t disk image image-dir/ $(FTPname).img
ftp-iso: root-image boot-files
mkarchiso -v -p grub-gfx image image-dir/ $(FTPname).iso
.PHONY: boot-files
boot-files:
mkdir -p image-dir/boot/grub/
mkdir -p image-dir/boot/isolinux
#ick! this section needs reworking
cp -r work/usr/lib/grub/i386-pc/* image-dir/boot/grub
cp -r work/usr/lib/syslinux/isolinux.bin image-dir/boot/isolinux
cp -r work/boot/* image-dir/boot/
cp -r boot-files/* image-dir/boot/
#end ick
mkinitcpio -c initcpio-ide -b work/ -k $(kver) -g image-dir/boot/archiso_ide.img
mkinitcpio -c initcpio-pata -b work/ -k $(kver) -g image-dir/boot/archiso_pata.img
root-image:
mkarchiso -v -p "`cat packages.list-$(ARCH)`" install work
cp -r overlay/* work
chmod 0440 work/etc/sudoers
mkdir image-dir/
mkarchiso -v squash work image-dir/root-image.sqfs
# hacky way to always pull
.PHONY: core-pkgs
core-pkgs:
wget --mirror -P core-pkgs -nH --cut-dirs=3 ftp://ftp.archlinux.org/core/os/$(ARCH)
mkdir image-dir/
mkarchiso -v squash core-pkgs image-dir/core-pkgs.sqfs
clean:
rm -rf work image-dir $(FTPname).img $(FTPname).iso $(COREname).img $(COREname).iso
|