forked from coreos/ignition
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
providers/system: support .d directory for base config fragments
Fixes coreos#1101 This change was inspired by coreos/fedora-coreos-config#626, which requires the two distros to carry different base.ign files with common elements. Also, this will support an additional .d directory for each platform ID.
- Loading branch information
1 parent
1315642
commit 9290b32
Showing
3 changed files
with
63 additions
and
8 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package main | ||
|
||
import ( | ||
"fmt" | ||
"io/ioutil" | ||
) | ||
|
||
func main() { | ||
c, err := ioutil.ReadDir("/tmp/exp") | ||
if err != nil { | ||
fmt.Print("failed due to read dir") | ||
} | ||
for _, entry := range c { | ||
fmt.Println(" ", entry.Name(), entry.IsDir()) | ||
} | ||
} |
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