run: add --quit-after-boot, handle rdinit= vs init= there

This commit is contained in:
Ciro Santilli 六四事件 法轮功
2019-01-22 00:00:00 +00:00
parent 54ef7d52f9
commit d2cd2d6100
5 changed files with 28 additions and 13 deletions

View File

@@ -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.