Skip to content

Run tune2fs during initramfs instead of image install#10536

Merged
saiarcot895 merged 1 commit intosonic-net:masterfrom
saiarcot895:tune2fs-change
Apr 12, 2022
Merged

Run tune2fs during initramfs instead of image install#10536
saiarcot895 merged 1 commit intosonic-net:masterfrom
saiarcot895:tune2fs-change

Conversation

@saiarcot895
Copy link
Contributor

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.

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

@zzhiyuan zzhiyuan left a comment

Choose a reason for hiding this comment

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

Aboot change looks good. Thanks.

@saiarcot895 saiarcot895 merged commit 12ebe3f into sonic-net:master Apr 12, 2022
@saiarcot895 saiarcot895 deleted the tune2fs-change branch April 12, 2022 23:24
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