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

Add mount-boot command. #251

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

silkeh
Copy link
Contributor

@silkeh silkeh commented Aug 21, 2022

This PR adds a mount-boot command and corresponding service. The service can then be depended upon by services that require /boot to be mounted (like fwupd).

This allows for integration like discussed in #77.

Type=oneshot
RemainAfterExit=yes
ExecStart=@BINDIR@/clr-boot-manager mount-boot
ExecStop=@BINDIR@/umount /boot

Choose a reason for hiding this comment

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

I think clr-boot-manager supports using a different boot directory than /boot, you should replace the /boot here with a template option.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Goot catch, updated!

* This file is part of clr-boot-manager.
*
* Copyright © 2016-2018 Intel Corporation
* Copyright © 2020 Silke Hofstra

Choose a reason for hiding this comment

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

I don't think you can claim copyright on this file.

Copy link
Contributor

Choose a reason for hiding this comment

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

Actually, this is entirely reasonable.

When you add a new file, or add code that contains substantial amounts of new code authored by your, adding an author/copyright line is very much okay.

Maybe the date should be changed to 2022, though. Unless it's actually old code that's been circulated before.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Maybe the date should be changed to 2022, though. Unless it's actually old code that's been circulated before.

Looking at my original commit date, this is correct. It has been ready for a while, pending a go-ahead to start integrating fwupd for solus.

The `mount-boot` command mounts the boot partitions.
This is useful for when the user, any system component,
requires the boot directory to be mounted.

As unmounting afterwards is a simple `umount`,
no `unmount-boot` command is added.
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