@@ -34,10 +34,9 @@ Install packages we need in the `build system` required by our scripts.
3434
3535``` shell 
3636sudo apt-get install \
37-     binutils \
38-     debootstrap \
39-     squashfs-tools \
40-     xorriso
37+    debootstrap \
38+    squashfs-tools \
39+    xorriso
4140``` 
4241
4342``` shell 
@@ -799,6 +798,7 @@ After everything has been installed and preconfigured in the **chrooted** enviro
799798
800799   ```shell 
801800   cd $HOME/live-ubuntu-from-scratch/image 
801+    ``` 
802802
8038032. Create iso from the image directory using the command-line 
804804
@@ -807,25 +807,26 @@ After everything has been installed and preconfigured in the **chrooted** enviro
807807      -as mkisofs \ 
808808      -iso-level 3 \ 
809809      -full-iso9660-filenames \ 
810+       -J -J -joliet-long \ 
810811      -volid "Ubuntu from scratch" \ 
811812      -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 \ 
822823      -append_partition 2 0xef isolinux/efiboot.img \ 
823824      -m "isolinux/efiboot.img" \ 
824825      -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+       "." 
829830   ``` 
830831
831832## 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
868869
869870   ```shell 
870871   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 
873880   ``` 
874881
875- 3 . Create iso from the image directory
882+ 4 . Create iso from the image directory
876883
877884   ```shell 
878885   sudo xorriso \ 
879886      -as mkisofs \ 
880887      -iso-level 3 \ 
881888      -full-iso9660-filenames \ 
889+       -J -J -joliet-long \ 
882890      -volid "Ubuntu from scratch" \ 
883891      -output "../ubuntu-from-scratch.iso" \ 
884892    -isohybrid-mbr /usr/lib/ISOLINUX/isohdpfx.bin \ 
0 commit comments