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

[202012] Run tune2fs during initramfs instead of image install #10558

Merged
merged 1 commit into from
Apr 13, 2022

Conversation

saiarcot895
Copy link
Contributor

@saiarcot895 saiarcot895 commented Apr 12, 2022

Signed-off-by: Saikrishna Arcot sarcot@microsoft.com

Why I did it

If it is run during image install, it's not guaranteed that the
installation environment will have tune2fs available. Therefore, run it
during initramfs instead.

Master branch PR: #10536

How I did it

Remove the tune2fs command from the image installation files, and add
it into initramfs, just after the filesystem gets mounted.

How to verify it

Tested on a Arista 7060 running 201911 image, and was able to install and
boot a 202012 branch image with 5% reserved blocks.

Which release branch to backport (provide reason below if selected)

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106
  • 202111

Description for the changelog

Link to config_db schema for YANG module changes

A picture of a cute animal (not mandatory but encouraged)

If it is run during image install, it's not guaranteed that the
installation environment will have tune2fs available. Therefore, run it
during initramfs instead.

Signed-off-by: Saikrishna Arcot <sarcot@microsoft.com>
@saiarcot895 saiarcot895 requested a review from yxieca April 12, 2022 21:11
@saiarcot895 saiarcot895 merged commit 29b6f62 into sonic-net:202012 Apr 13, 2022
@saiarcot895 saiarcot895 deleted the tune2fs-change-202012 branch April 13, 2022 02:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants