mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-27 04:01:36 +01:00
run: add --quit-after-boot, handle rdinit= vs init= there
This commit is contained in:
10
README.adoc
10
README.adoc
@@ -2700,14 +2700,20 @@ ls -lh "$(./getvar linux_image)"
|
||||
|
||||
before and after using initramfs, since the `.cpio` is now glued to the kernel image.
|
||||
|
||||
Don't forget that to stop using initramfs, you must rebuild the kernel without `--initramfs`:
|
||||
Don't forget that to stop using initramfs, you must rebuild the kernel without `--initramfs` to get rid of the attached CPIO image:
|
||||
|
||||
....
|
||||
./build-linux
|
||||
./run
|
||||
....
|
||||
|
||||
Also consider using <<linux-kernel-build-variants>> if you need to switch between initramfs and non initramfs often.
|
||||
Alternatively, consider using <<linux-kernel-build-variants>> if you need to switch between initramfs and non initramfs often:
|
||||
|
||||
....
|
||||
./build-buildroot --initramfs
|
||||
./build-linux --initramfs --linux-build-id initramfs
|
||||
./run --initramfs --linux-build-id
|
||||
....
|
||||
|
||||
Setting up initramfs is very easy: our scripts just set `CONFIG_INITRAMFS_SOURCE` to point to the CPIO path.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user