mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-30 05:24:25 +01:00
rootfs_post_build_script stub
This commit is contained in:
12
README.md
12
README.md
@@ -281,6 +281,18 @@ Also remember that if your init returns, the kernel will panic, there are just t
|
|||||||
- run forever in a loop or long sleep
|
- run forever in a loop or long sleep
|
||||||
- `poweroff` the machine
|
- `poweroff` the machine
|
||||||
|
|
||||||
|
### BusyBox init is fine, but networking gets on my nerves
|
||||||
|
|
||||||
|
I know right?
|
||||||
|
|
||||||
|
Add this line to `rootfs_post_build_script`:
|
||||||
|
|
||||||
|
rm -f "${1}/etc/init.d/"S*network
|
||||||
|
|
||||||
|
To restore it, run:
|
||||||
|
|
||||||
|
./run -t initscripts-reconfigure
|
||||||
|
|
||||||
## Debugging
|
## Debugging
|
||||||
|
|
||||||
To GDB the Linux kernel, first run:
|
To GDB the Linux kernel, first run:
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ BR2_PACKAGE_KERNEL_MODULE=y
|
|||||||
BR2_PACKAGE_OVERRIDE_FILE="../buildroot_override"
|
BR2_PACKAGE_OVERRIDE_FILE="../buildroot_override"
|
||||||
BR2_PACKAGE_STRACE=y
|
BR2_PACKAGE_STRACE=y
|
||||||
BR2_ROOTFS_OVERLAY="../rootfs_overlay"
|
BR2_ROOTFS_OVERLAY="../rootfs_overlay"
|
||||||
|
BR2_ROOTFS_POST_BUILD_SCRIPT="../rootfs_post_build_script"
|
||||||
BR2_ROOTFS_USERS_TABLES="../user_table"
|
BR2_ROOTFS_USERS_TABLES="../user_table"
|
||||||
|
|
||||||
# Host GDB
|
# Host GDB
|
||||||
|
|||||||
2
rootfs_post_build_script
Executable file
2
rootfs_post_build_script
Executable file
@@ -0,0 +1,2 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
#rm "${1}/etc/init.d/"S*network
|
||||||
Reference in New Issue
Block a user