https://github.com/pierregode/initrd-edit
https://github.com/pierregode/initrd-edit
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/pierregode/initrd-edit
- Owner: PierreGode
- Created: 2022-10-13T13:06:15.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-05-23T09:14:25.000Z (about 3 years ago)
- Last Synced: 2025-01-13T02:12:34.859Z (over 1 year ago)
- Language: Shell
- Size: 16.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.