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

rootfs: minor systemd file deletion cleanup #299

Merged
merged 3 commits into from
Jan 27, 2025

Conversation

danmihai1
Copy link

  1. Move the deletion of systemd units and files from image_builder.sh into rootfs.sh.
  • This allows other image file formats to benefit from the deletion of unnecessary systemd units and files, not just the rootfs-image format created by image_builder.sh.
  • Also, image_builder.sh was deleting these files after it calculated the size of the rootfs files, thus missing out on the opportunity to possibly create a smaller image file.
  1. Delete symbolic links to files being deleted.

Move the deletion of unnecessary systemd units and files from
image_builder.sh into rootfs.sh.

The files being deleted can be applicable to other image file formats
too, not just to the rootfs-image format created by image_builder.sh.

Also, image_builder.sh was deleting these files *after* it calculated
the size of the rootfs files, thus missing out on the opportunity to
possibly create a smaller image file.

Signed-off-by: Dan Mihai <[email protected]>
Show the list of files being deleted.

Signed-off-by: Dan Mihai <[email protected]>
Delete symbolic links to files being deleted.

Signed-off-by: Dan Mihai <[email protected]>
@danmihai1 danmihai1 requested review from a team as code owners January 24, 2025 21:47
@danmihai1 danmihai1 added the upstream/merged PRs that have been merged upstream label Jan 24, 2025
@danmihai1 danmihai1 merged commit 1ee72c4 into msft-main Jan 27, 2025
48 of 59 checks passed
@danmihai1 danmihai1 deleted the danmihai1/delete-from-rootfs branch January 27, 2025 18:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
upstream/merged PRs that have been merged upstream
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants