blob: 82482bec3a254c1b57055fa9a590e4bc7075f18f (
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
|
#### 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 -rf "$(WORKDIR)" "$(ISONAME)"
|