Rework installer config to support new changes

Lots of changes, mainly for argument processing
and things of that nature in mkarchiso. Split out
some common functionality in the Maekfile as well.

Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
This commit is contained in:
Aaron Griffin 2008-10-20 23:41:54 -05:00
parent 071b3454a0
commit cd3e72ee68
6 changed files with 39 additions and 34 deletions

View File

@ -1,41 +1,49 @@
ver=2008.10 ver=2008.10
kver=2.6.27-ARCH kver=2.6.27-ARCH
carch=i686
FTPname=$(PWD)/archlinux-$(ver)-ftp-$(carch) #Define outside of 'make' for other arches
COREname=$(PWD)/archlinux-$(ver)-core-$(carch) 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: core-iso core-usb ftp-iso ftp-usb
all-iso: core-iso ftp-iso
all-usb: core-usb ftp-usb
core-usb: .work-core core-usb: core-pkgs root-image boot-files
mkinitcpio -c initcpio-ide -b .work-core/install -k $(kver) -g .work-core/img/boot/archiso-ide.img mkarchiso -v -p grub-gfx -t disk image image-dir/ $(COREname).img
mkarchiso -v -t disk -i initcpio-pata img .work-core $(COREname).img
core-iso: .work-core core-iso: core-pkgs root-image boot-files
mkinitcpio -c initcpio-ide -b .work-core/install -k $(kver) -g .work-core/img/boot/archiso-ide.img mkarchiso -v -p grub-gfx image image-dir/ $(FTPname).iso
mkarchiso -v -t iso -i initcpio-pata img .work-core $(COREname).iso
ftp-usb: .work-ftp ftp-usb: root-image boot-files
mkinitcpio -c initcpio-ide -b .work-ftp/install -k $(kver) -g .work-ftp/img/boot/archiso-ide.img mkarchiso -v -p grub-gfx -t disk image image-dir/ $(FTPname).img
mkarchiso -v -t disk -i initcpio-pata img .work-ftp $(FTPname).img
ftp-iso: .work-ftp ftp-iso: root-image boot-files
mkinitcpio -c initcpio-ide -b .work-ftp/install -k $(kver) -g .work-ftp/img/boot/archiso-ide.img mkarchiso -v -p grub-gfx image image-dir/ $(FTPname).iso
mkarchiso -v -t iso -i initcpio-pata img .work-ftp $(FTPname).iso
.work-ftp: .PHONY: boot-files
boot-files:
mkdir -p image-dir/boot/
cp -r boot-files/* image-dir/boot/
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:
chmod 0440 overlay/etc/sudoers chmod 0440 overlay/etc/sudoers
mkarchiso -v -P packages.list-$(carch) install .work-ftp mkarchiso -v -p "`cat packages.list-$(ARCH)`" install work
mkarchiso -v squash .work-ftp cp -r overlay/* work
mkdir image-dir/
.work-core: addons/core-pkgs mkarchiso -v squash work image-dir/root-image.sqfs
chmod 0440 overlay/etc/sudoers
mkarchiso -v -a addons -P packages.list-$(carch) install .work-core
mkarchiso -v squash .work-core
# hacky way to always pull # hacky way to always pull
.PHONY: addons/core-pkgs .PHONY: core-pkgs
addons/core-pkgs: core-pkgs:
wget --mirror -P addons/core-pkgs -nH --cut-dirs=3 ftp://ftp.archlinux.org/core/os/$(carch) wget --mirror -P core-pkgs -nH --cut-dirs=3 ftp://ftp.archlinux.org/core/os/$(ARCH)
mkdir image/
mkarchiso -v squash core-pkgs image-dir/core-pkgs.sqfs
clean: clean:
rm -fr .work-ftp .work-core rm -rf work image

View File

@ -7,10 +7,6 @@ title Boot ArchLinux LiveCD
kernel /boot/vmlinuz26 lang=en locale=en_US.UTF-8 ramdisk_size=75% kernel /boot/vmlinuz26 lang=en locale=en_US.UTF-8 ramdisk_size=75%
initrd /boot/archiso.img initrd /boot/archiso.img
title Boot ArchLinux LiveCD [legacy IDE]
kernel /boot/vmlinuz26 lang=en locale=en_US.UTF-8 ramdisk_size=75% ide-legacy
initrd /boot/archiso-ide.img
title Tools... title Tools...
configfile /boot/grub/tools.lst configfile /boot/grub/tools.lst

View File

@ -4,4 +4,5 @@
# syntax: <img> <mount point> <type> # syntax: <img> <mount point> <type>
root-image / bind
core-pkgs /src/core/pkg bind core-pkgs /src/core/pkg bind

View File

@ -10,9 +10,9 @@ intel-536ep
intel-537 intel-537
ipw2100-fw ipw2100-fw
ipw2200-fw ipw2200-fw
ipw3945
iwlwifi-3945-ucode iwlwifi-3945-ucode
iwlwifi-4965-ucode iwlwifi-4965-ucode
iwlwifi-5000-ucode
lftp lftp
lilo lilo
lshwd lshwd

View File

@ -8,9 +8,9 @@ gnu-netcat
grub-gfx grub-gfx
ipw2100-fw ipw2100-fw
ipw2200-fw ipw2200-fw
ipw3945
iwlwifi-3945-ucode iwlwifi-3945-ucode
iwlwifi-4965-ucode iwlwifi-4965-ucode
iwlwifi-5000-ucode
lftp lftp
lilo lilo
lshwd lshwd