Skip to content

Commit

Permalink
Add comment above method
Browse files Browse the repository at this point in the history
Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
  • Loading branch information
jimmykarily committed Sep 26, 2024
1 parent a45cee2 commit d3c864c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/constants/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,11 @@ func GetYipConfigDirs() []string {
return append(GetUserConfigDirs(), "/system/oem")
}

// GetUserConfigDirs returns all the directories that might have configuration
// supplied by the user. They are in an order which allows the users to override
// baked-in configuration (e.g. in livecd, under /run/initramfs/live) with
// configuration coming from datasource (e.g. a datasource cdrom, written under /oem).
// That's why writable paths are last.
func GetUserConfigDirs() []string {
return []string{
"/run/initramfs/live",
Expand Down

0 comments on commit d3c864c

Please sign in to comment.