@@ -5,6 +5,10 @@ source stage0n_variables
5
5
mkdir -p ${CLFS} /iso/boot/isolinux
6
6
mkdir -p ${CLFS} /iso/boot/system
7
7
8
+ # Copy libraries
9
+ echo ${CLFS} /cross-tools/${CLFS_TARGET} ${CLFS} /targetfs
10
+ tar -C ${CLFS} /cross-tools/${CLFS_TARGET} -cvf - lib | tar -C ${CLFS} /targetfs -xf -
11
+
8
12
# Create the initramfs
9
13
( cd ${CLFS} /targetfs ; find . | cpio -o -H newc | gzip -c > ../iso/boot/system/initrd.gz )
10
14
@@ -13,4 +17,20 @@ kern=` ls ${CLFS}/targetfs/boot/vmlinuz* | tail -n1 `
13
17
install -m 0644 " $kern " ${CLFS} /iso/boot/system/vmlinuz
14
18
15
19
# copy the bootloader
20
+ for f in bios/com32/menu/menu.c32 bios/com32/menu/vesamenu.c32 \
21
+ bios/com32/modules/ifcpu64.c32 bios/com32/modules/ifcpu.c32 \
22
+ bios/com32/modules/reboot.c32 bios/com32/chain/chain.c32 \
23
+ bios/com32/elflink/ldlinux/ldlinux.c32 bios/com32/libutil/libutil.c32 \
24
+ bios/com32/cmenu/libmenu/libmenu.c32 bios/com32/lib/libcom32.c32 \
25
+ bios/com32/lua/src/liblua.c32 bios/com32/gpllib/libgpl.c32 \
26
+ bios/core/isolinux.bin ; do
27
+ install -m 0644 ${CLFS} /hosttools/share/syslinux/$f ${CLFS} /iso/boot/isolinux/
28
+ done
29
+
30
+ install -m 0644 patches/isolinux.cfg ${CLFS} /iso/boot/isolinux/
16
31
32
+ ${CLFS} /hosttools/bin/xorriso -as mkisofs -joliet -graft-points \
33
+ -c boot/isolinux/boot.cat -b boot/isolinux/isolinux.bin \
34
+ -no-emul-boot -boot-info-table -boot-load-size 4 \
35
+ -isohybrid-mbr ${CLFS} /hosttools/share/syslinux/bios/mbr/isohdpfx.bin \
36
+ -V CLFS -o ${CLFS} /clfs.iso -r ${CLFS} /iso
0 commit comments