@@ -34,10 +34,9 @@ Install packages we need in the `build system` required by our scripts.
34
34
35
35
``` shell
36
36
sudo apt-get install \
37
- binutils \
38
- debootstrap \
39
- squashfs-tools \
40
- xorriso
37
+ debootstrap \
38
+ squashfs-tools \
39
+ xorriso
41
40
```
42
41
43
42
``` shell
@@ -799,6 +798,7 @@ After everything has been installed and preconfigured in the **chrooted** enviro
799
798
800
799
```shell
801
800
cd $HOME/live-ubuntu-from-scratch/image
801
+ ```
802
802
803
803
2. Create iso from the image directory using the command-line
804
804
@@ -807,25 +807,26 @@ After everything has been installed and preconfigured in the **chrooted** enviro
807
807
-as mkisofs \
808
808
-iso-level 3 \
809
809
-full-iso9660-filenames \
810
+ -J -J -joliet-long \
810
811
-volid "Ubuntu from scratch" \
811
812
-output "../ubuntu-from-scratch.iso" \
812
- -eltorito-boot boot/grub/bios.img \
813
- -no-emul-boot \
814
- -boot-load-size 4 \
815
- -boot-info-table \
816
- --eltorito-catalog boot/grub/boot.cat \
817
- --grub2-boot-info \
818
- --grub2-mbr ../chroot/usr/lib/grub/i386-pc/boot_hybrid.img \
819
- -eltorito-alt-boot \
820
- -e EFI/efiboot.img \
821
- -no-emul-boot \
813
+ -eltorito-boot boot/grub/bios.img \
814
+ -no-emul-boot \
815
+ -boot-load-size 4 \
816
+ -boot-info-table \
817
+ --eltorito-catalog boot/grub/boot.cat \
818
+ --grub2-boot-info \
819
+ --grub2-mbr ../chroot/usr/lib/grub/i386-pc/boot_hybrid.img \
820
+ -eltorito-alt-boot \
821
+ -e EFI/efiboot.img \
822
+ -no-emul-boot \
822
823
-append_partition 2 0xef isolinux/efiboot.img \
823
824
-m "isolinux/efiboot.img" \
824
825
-m "isolinux/bios.img" \
825
- -graft-points \
826
- "/EFI/efiboot.img=isolinux/efiboot.img" \
827
- "/boot/grub/bios.img=isolinux/bios.img" \
828
- "."
826
+ -graft-points \
827
+ "/EFI/efiboot.img=isolinux/efiboot.img" \
828
+ "/boot/grub/bios.img=isolinux/bios.img" \
829
+ "."
829
830
```
830
831
831
832
## Alternative way, if previous one fails, create an Hybrid ISO
@@ -868,17 +869,24 @@ After everything has been installed and preconfigured in the **chrooted** enviro
868
869
869
870
```shell
870
871
apt install -y syslinux-common && \
871
- cp /usr/lib/ISOLINUX/isolinux.bin isolinux/ && \
872
- cp /usr/lib/syslinux/modules/bios/* isolinux/
872
+ cp /usr/lib/ISOLINUX/isolinux.bin image/isolinux/ && \
873
+ cp /usr/lib/syslinux/modules/bios/* image/isolinux/
874
+ ```
875
+
876
+ 3. Access build directory
877
+
878
+ ```shell
879
+ cd $HOME/live-ubuntu-from-scratch/image
873
880
```
874
881
875
- 3 . Create iso from the image directory
882
+ 4 . Create iso from the image directory
876
883
877
884
```shell
878
885
sudo xorriso \
879
886
-as mkisofs \
880
887
-iso-level 3 \
881
888
-full-iso9660-filenames \
889
+ -J -J -joliet-long \
882
890
-volid "Ubuntu from scratch" \
883
891
-output "../ubuntu-from-scratch.iso" \
884
892
-isohybrid-mbr /usr/lib/ISOLINUX/isohdpfx.bin \
0 commit comments