-
Notifications
You must be signed in to change notification settings - Fork 94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
build: add some commands and make build.sh independent #133
Conversation
Burning1020
commented
Apr 8, 2024
- add some command binaries for debug in vm
- build.sh is for docker/ctr/isula to prepare guest rootfs and build it to image or initrd, thus it should not have any difference with each guest os.
release workload on my repo: https://github.com/Burning1020/kuasar/actions/runs/8599916269 |
1. add some command binaries for debug in vm 2. build.sh is for docker/ctr/isula to prepare guest rootfs and build it to image or initrd, thus it should not have any difference with each guest os. Signed-off-by: Zhang Tianyang <burning9699@gmail.com>
@@ -7,6 +7,9 @@ | |||
/usr/bin/sh /bin | |||
# procps-ng | |||
/usr/bin/ps /bin | |||
/usr/bin/kill /bin | |||
/usr/bin/free /bin | |||
/usr/bin/top /bin |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How much will these binaries add to the total image size?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approximately 1~2M, the total size of image file in still 128M,
fi | ||
array=($(rpm -ql $rpm | grep -v "share" | grep -v ".build-id")) | ||
for file in ${array[@]}; do | ||
source=$file | ||
dts_file=${rootfs_dir}$file | ||
dts_folder=${dts_file%/*} | ||
if [ ! -d "$dts_folder" ]; then | ||
if [ ! -d "$dts_folder" ] && [ ! -L "$dts_folder" ]; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Under what circumstances is the dts_ folder a symbolic link?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/bin
links to /usr/bin
, in this condition, make directory for /bin
is failed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/LGTM