This repository is to make compiling the kernel easier
git clone git@github.com:Lesords/my-linux-builder.git --depth 1
cd my-linux-builder
docker build . -t teeny-linux-builder
docker container run -it teeny-linux-builder
Ps: Currently, you can only generate images that satisfy the kernel compilation environment
cd test
../scripts/gen_rootfs.sh
This script will generate a root filesystem image in the current directory.
Note that, the root filesystem generated by default is incomplete and no umount operation is performed. If you have already compiled busybox, you can put the compilation results in the test folder, and then execute the script.
The file structure is as follows:
test
├── busybox
│ └── _install
└── init.sh
Put the image and root file system in the test folder
Then, run
./init.sh