rootfs_post_build_script stub

This commit is contained in:
Ciro Santilli
2017-10-07 04:28:22 +01:00
parent 62976c688b
commit f69e894034
3 changed files with 15 additions and 0 deletions

View File

@@ -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
- `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
To GDB the Linux kernel, first run:

View File

@@ -5,6 +5,7 @@ BR2_PACKAGE_KERNEL_MODULE=y
BR2_PACKAGE_OVERRIDE_FILE="../buildroot_override"
BR2_PACKAGE_STRACE=y
BR2_ROOTFS_OVERLAY="../rootfs_overlay"
BR2_ROOTFS_POST_BUILD_SCRIPT="../rootfs_post_build_script"
BR2_ROOTFS_USERS_TABLES="../user_table"
# Host GDB

2
rootfs_post_build_script Executable file
View File

@@ -0,0 +1,2 @@
#!/usr/bin/env bash
#rm "${1}/etc/init.d/"S*network