How to create a bootable Linux ISO image with patched initramfs



How to create a bootable Linux ISO image with patched initramfs

How to create a bootable Linux ISO image with patched initramfs

Scripts:
https://github.com/maksimKorzh/custom-linux-iso

================================================
VICI – Minimalist cross-platform terminal based text editor
================================================
https://github.com/maksimKorzh/vici

==================================
ED – The standard Linux Text Editor in Go
==================================
https://github.com/maksimKorzh/ed

====================================
EGO – A bare bones text editor written in Go
====================================
https://github.com/maksimKorzh/ego

=======================
SOURCE CODE for this part
=======================
https://github.com/maksimKorzh/ego/tree/main/tutorial/part12

============
FULL SERIES
============
https://www.youtube.com/watch?v=mVFXBZUBe2s&list=PLLfIBXQeu3aa0NI4RT5OuRQsLo6gtLwGN

====================
MY TOY TEXT EDITORS
====================

VI-like text editor in 100 lines of C++ code:
https://github.com/maksimKorzh/ved

Text editor in 50 lines of python:
https://github.com/maksimKorzh/v

VI-like text editor in 125 lines of python:
https://github.com/maksimKorzh/edit/blob/main/edit.py

Text editor with python shell:
https://github.com/maksimKorzh/pi

Tiny vi-like text editor in only 125 lines of python code:
https://github.com/maksimKorzh/vip

Text editor with syntax highlighting:
https://github.com/maksimKorzh/code

Kilo text editor cone in C:
https://github.com/maksimKorzh/kilo-clone

Kilo text editor port to ESP32:
https://github.com/maksimKorzh/esp32-kilo

===============================================
TUTORIALS COVERING MOST OF THE ABOVE PROJECTS
===============================================
https://www.youtube.com/watch?v=jepoFilRi4Y&list=PLLfIBXQeu3abgxct_JPZ5fnhOvXmqKM6S&index=1

=====================
SUPPORT THE CHANNEL
=====================
Patreon: https://www.patreon.com/code_monkey_king
PayPal: [email protected]

==========
CONTENTS
==========

00:00 Intro
00:25 What does bootable Linux ISO consist of?
01:06 Problem with SYSLINUX bootloader
02:16 Creating ‘build.sh’ script
02:49 Download kernel, rootfs ans a custom text editor
05:17 Creating ISO folder
05:39 Installing Linux Kernel
06:23 Creating grub bootloader configuration file
09:24 Avoiding initrd vs initramfs confusion
11:35 Installing rootfs
12:41 Creating ISO image from ‘iso’ folder
13:33 Writing a script to run ISO image under QEMU
15:30 Issue with official TinyCoreLinux ISO
17:25 Unpacking rootfs
18:20 Problems with extracting /dev folder contents
20:47 Pre-built /dev instead of mounting devtmpfs
21:24 Patching initramfs with a custom statically linked binary executable (VICI text editor)
22:00 Essential difference between statically and dynamically linked binary files
23:08 A few words on TinyCoreLinux package management system
24:35 Pack patched rootfs back to *.cpio.gz format
26:30 Updating grub configuration file with newly created initramfs
28:40 Writing a command to burn ISO to USB flash drive
30:08 FInding USB flash drive with ‘fdisk -l’
30:34 Burning ISO to USB flash drive
30:46 Testing on the real hardware