An open API service indexing awesome lists of open source software.

https://github.com/pierregode/initrd-edit


https://github.com/pierregode/initrd-edit

Last synced: 10 months ago
JSON representation

Awesome Lists containing this project

README

          

Ubuntu initrd Modification Script


This script is a utility designed to extract, modify, and recreate the initial ramdisk (initrd) file within an Ubuntu operating system. The initrd contains a temporary root filesystem loaded into memory during system boot. This filesystem includes essential drivers and tools that the system uses to mount the actual root filesystem.

How it Works


The script extracts the initrd file, allowing you to insert needed drivers into the appropriate directories, and then repacks the initrd for booting. The drivers should be placed in the /lib/modules//kernel/drivers/net/usb directory within the extracted initrd file structure.

Usage


The script presents an interactive menu guiding you through the processes of extracting an existing initrd file, creating a new initrd from the extracted content, and checking the file. Please ensure that the initrd file you wish to modify resides in the same directory as the script before running it.

Caution


Please note that the modifications performed by this script require a deep understanding of the Linux boot process and device drivers. Always test the modifications in a controlled environment before deploying them in a live setting. Be aware that inserting kernel modules and modifying initrd can significantly affect the boot process and the stability of the system.

Contribution


Contributions and improvements to the script are always welcome. Please make sure to test the changes thoroughly before submitting a pull request.