Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/configs/default/Makefile
diff options
context:
space:
mode:
authorAaron Griffin <aaronmgriffin@gmail.com>2008-12-21 02:10:57 -0600
committerAaron Griffin <aaronmgriffin@gmail.com>2008-12-21 02:10:57 -0600
commit77e9ea45caa7608557b1443acf0ae7d1b27248de (patch)
tree970e4e25a34abd604784f4c47477b97f345c2a8a /configs/default/Makefile
parent97f4dcec818f98a6580443f33f716342c05f2861 (diff)
Revamp the simple sample ISO config
Should be easier and cleaner. Makes a dumb ISO that does nothing but is intended as an example to the user. Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
Diffstat (limited to 'configs/default/Makefile')
-rw-r--r--configs/default/Makefile67
1 files changed, 28 insertions, 39 deletions
diff --git a/configs/default/Makefile b/configs/default/Makefile
index 38d0533..82482be 100644
--- a/configs/default/Makefile
+++ b/configs/default/Makefile
@@ -1,41 +1,30 @@
-ver=2008.09
-kver=2.6.26-ARCH
-carch=i686
-FTPname=$(PWD)/archlinux-$(ver)-ftp-$(carch)
-COREname=$(PWD)/archlinux-$(ver)-core-$(carch)
-
-all: core-iso core-usb ftp-iso ftp-usb
-
-core-usb: .work-core
- mkinitcpio -c initcpio-ide -b .work-core/install -k $(kver) -g .work-core/img/boot/archiso-ide.img
- mkarchiso -v -t disk -i initcpio-pata img .work-core $(COREname).img
-
-core-iso: .work-core
- mkinitcpio -c initcpio-ide -b .work-core/install -k $(kver) -g .work-core/img/boot/archiso-ide.img
- mkarchiso -v -t iso -i initcpio-pata img .work-core $(COREname).iso
-
-ftp-usb: .work-ftp
- mkinitcpio -c initcpio-ide -b .work-ftp/install -k $(kver) -g .work-ftp/img/boot/archiso-ide.img
- mkarchiso -v -t disk -i initcpio-pata img .work-ftp $(FTPname).img
-
-ftp-iso: .work-ftp
- mkinitcpio -c initcpio-ide -b .work-ftp/install -k $(kver) -g .work-ftp/img/boot/archiso-ide.img
- mkarchiso -v -t iso -i initcpio-pata img .work-ftp $(FTPname).iso
-
-.work-ftp:
- chmod 0440 overlay/etc/sudoers
- mkarchiso -v -P packages.list-$(carch) install .work-ftp
- mkarchiso -v squash .work-ftp
-
-.work-core: addons/core-pkgs
- 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
-.PHONY: addons/core-pkgs
-addons/core-pkgs:
- wget --mirror -P addons/core-pkgs -nH --cut-dirs=3 ftp://ftp.archlinux.org/core/os/$(carch)
+#### Change these settings to modify how this ISO is built
+# The directory that we use for working files
+WORKDIR=work
+# A list of packages to install, space separated. Can include groups
+PACKAGES="base grub"
+# The name of our ISO. Does not specify the architecture!
+ISONAME=sample-1.0.0.iso
+
+all:
+ mkarchiso -p "$(PACKAGES)" create "$(WORKDIR)"
+
+ # Do any editing to $(WORKDIR)/iso/ or $(WORKDIR)/root-image/ here
+ # Copy grub files to the ISO dir so we can boot it
+ mkdir -p "$(WORKDIR)/iso/boot/grub"
+ mv "$(WORKDIR)/root-image/boot" "$(WORKDIR)/iso/"
+ cp -r "$(WORKDIR)/root-image/usr/lib/grub/i386-pc/"* "$(WORKDIR)/iso/boot/grub"
+
+ # Use our own menu.lst
+ cp menu.lst "$(WORKDIR)/iso/boot/grub/"
+
+ #Rebuild the mkinitcpio image with the archiso hook
+ mkinitcpio -c mkinitcpio.conf -b "$(WORKDIR)/root-image" -k $(kver) -g "$(WORKDIR)/iso/boot/archiso.img"
+
+ mkarchiso -p grub iso "$(WORKDIR)" "$(ISONAME)"
+
+ # Cleanup our working dir
+ rm -rf "$(WORKDIR)"
clean:
- rm -fr .work-ftp .work-core
+ rm -rf "$(WORKDIR)" "$(ISONAME)"