-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat!: add option to keep the overlay on update (closes #7)
BREAKING CHANGE: Previously, the overlay has been kept implicitly when installing an update. Now, `--keep-overlay` must be used to keep the overlay. Otherwise, it will be discarded.
- Loading branch information
Showing
3 changed files
with
24 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
use std::path::{Path, PathBuf}; | ||
|
||
use rugpi_common::partitions::PartitionSet; | ||
|
||
/// Get the overlay directory for the given partition set. | ||
pub fn overlay_dir(partitions: PartitionSet) -> PathBuf { | ||
Path::new("/run/rugpi/state/overlay").join(partitions.as_str()) | ||
} |