Skip to content

Specify the filesystem type when mounting to /host#10169

Merged
saiarcot895 merged 1 commit intosonic-net:masterfrom
saiarcot895:blockdev-initramfs
Mar 14, 2022
Merged

Specify the filesystem type when mounting to /host#10169
saiarcot895 merged 1 commit intosonic-net:masterfrom
saiarcot895:blockdev-initramfs

Conversation

@saiarcot895
Copy link
Contributor

When mounting the partition that contains /host during initramfs, the
mount binary available there (coming from busybox) tries each filesystem
in /proc/filesystems and sees which one succeeds. During this time,
there may be some error messages logged into dmesg because some of the
incorrect filesystems failed to mount the partition.

Specify the filesystem type explicitly so that initramfs knows it's that
type, and we know what filesystem will always get used there.

Fixes #9998

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

Why I did it

How I did it

How to verify it

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)

When mounting the partition that contains `/host` during initramfs, the
mount binary available there (coming from busybox) tries each filesystem
in `/proc/filesystems` and sees which one succeeds. During this time,
there may be some error messages logged into dmesg because some of the
incorrect filesystems failed to mount the partition.

Specify the filesystem type explicitly so that initramfs knows it's that
type, and we know what filesystem will always get used there.

Fixes sonic-net#9998

Signed-off-by: Saikrishna Arcot <sarcot@microsoft.com>
@saiarcot895 saiarcot895 requested a review from lguohan as a code owner March 7, 2022 19:58
@dgsudharsan dgsudharsan added the Request for 202111 Branch For PRs being requested for 202111 branch label Mar 14, 2022
@saiarcot895 saiarcot895 merged commit d7c3ce0 into sonic-net:master Mar 14, 2022
@saiarcot895 saiarcot895 deleted the blockdev-initramfs branch March 14, 2022 18:34
judyjoseph pushed a commit that referenced this pull request Mar 20, 2022
When mounting the partition that contains `/host` during initramfs, the
mount binary available there (coming from busybox) tries each filesystem
in `/proc/filesystems` and sees which one succeeds. During this time,
there may be some error messages logged into dmesg because some of the
incorrect filesystems failed to mount the partition.

Specify the filesystem type explicitly so that initramfs knows it's that
type, and we know what filesystem will always get used there.

Fixes #9998

Signed-off-by: Saikrishna Arcot <sarcot@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Included in 202111 Branch Request for 202111 Branch For PRs being requested for 202111 branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

/dev/sdaX: Can't open blockdev

5 participants