Skip to content

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

Merged
saiarcot895 merged 1 commit intosonic-net:202012from
saiarcot895:tune2fs-change-202012
Apr 13, 2022
Merged

[202012] Run tune2fs during initramfs instead of image install#10558
saiarcot895 merged 1 commit intosonic-net:202012from
saiarcot895:tune2fs-change-202012

Conversation

@saiarcot895
Copy link
Contributor

@saiarcot895 saiarcot895 commented Apr 12, 2022

Signed-off-by: Saikrishna Arcot [email protected]

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 <[email protected]>
@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