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

motd: use explicit umount/mount instead of remount #79

Merged
merged 1 commit into from
Sep 11, 2024

Conversation

hnez
Copy link
Member

@hnez hnez commented Sep 11, 2024

The umount/mount construct is more robust when there is e.g. already a /etc/motd file or if there is not /etc/motd mountpoint yet. The remount method fails in both of these cases.

This two-stage approach was taken from #57. Using remount instead was one of the changes introduced in #77. It looks like neither I nor @KarlK90 tested this change on actual hardware, instead relying only on the demo_mode.

The umount/mount construct is more robust when there is e.g. already a
/etc/motd _file_ or if there is not /etc/motd mountpoint yet.
The remount method fails in both of these cases.

Signed-off-by: Leonard Göhrs <l.goehrs@pengutronix.de>
@hnez
Copy link
Member Author

hnez commented Sep 11, 2024

I've tested the fully-integrated change now via linux-automation/meta-lxatac#177 and it seems to work fine (immediately after the first boot and when restarting the tacd.service).

@hnez hnez marked this pull request as ready for review September 11, 2024 10:26
Copy link
Member

@KarlK90 KarlK90 left a comment

Choose a reason for hiding this comment

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

Interesting, I thought that the remount would take care of this and you're right this wasn't tested on real hardware. Thanks for the fix.

@hnez hnez merged commit e79b017 into linux-automation:main Sep 11, 2024
11 checks passed
@hnez hnez deleted the motd-umount-mount branch September 11, 2024 12:21
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.

2 participants