Skip to content
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

Merged
merged 1 commit into from
Apr 9, 2024

Conversation

Burning1020
Copy link
Member

  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.

@Burning1020 Burning1020 requested review from a team as code owners April 8, 2024 12:20
@Burning1020
Copy link
Member Author

release workload on my repo: https://github.com/Burning1020/kuasar/actions/runs/8599916269

@Burning1020 Burning1020 marked this pull request as draft April 8, 2024 12:26
@Burning1020 Burning1020 marked this pull request as ready for review April 9, 2024 02:40
@Burning1020 Burning1020 changed the title build: add some commands and make build.sh public build: add some commands and make build.sh independent Apr 9, 2024
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
Copy link
Contributor

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?

Copy link
Member Author

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
Copy link
Contributor

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?

Copy link
Member Author

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.

vmm/scripts/image/centos/build_rootfs.sh Outdated Show resolved Hide resolved
Copy link
Contributor

@morningtzh morningtzh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Copy link
Member

@flyflypeng flyflypeng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/LGTM

@flyflypeng flyflypeng merged commit 432315c into kuasar-io:main Apr 9, 2024
15 checks passed
@Burning1020 Burning1020 deleted the fix-script branch August 8, 2024 06:49
@Burning1020 Burning1020 restored the fix-script branch August 8, 2024 06:49
@Burning1020 Burning1020 deleted the fix-script branch August 16, 2024 07:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants