diff options
author | 2024-12-10 23:32:39 +0000 | |
---|---|---|
committer | 2024-12-10 23:32:39 +0000 | |
commit | b6bb4d04f3aa37d01e303fe33709268dea61b6d9 (patch) | |
tree | 267ce28af80bfc4df90919fdb2a0968466da29b3 /filesystem/filesystem.go | |
parent | 8166813576222084d266c8900e9395b071af0e04 (diff) | |
parent | d524435d0cf8c4b1507c93be0e9f7e55ac3af0f0 (diff) |
Merge changes from topic "recovery_font" into main
* changes:
Install font module in recovery partition
Define additional symlinks and dirs for recovery partition
Diffstat (limited to 'filesystem/filesystem.go')
-rw-r--r-- | filesystem/filesystem.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/filesystem/filesystem.go b/filesystem/filesystem.go index cd3808c56..1d32b8f70 100644 --- a/filesystem/filesystem.go +++ b/filesystem/filesystem.go @@ -98,6 +98,14 @@ type SymlinkDefinition struct { Name *string } +// CopyWithNamePrefix returns a new [SymlinkDefinition] with prefix added to Name. +func (s *SymlinkDefinition) CopyWithNamePrefix(prefix string) SymlinkDefinition { + return SymlinkDefinition{ + Target: s.Target, + Name: proptools.StringPtr(filepath.Join(prefix, proptools.String(s.Name))), + } +} + type FilesystemProperties struct { // When set to true, sign the image with avbtool. Default is false. Use_avb *bool |