Skip to content

Commit

Permalink
🐛 Add default_path oem file (kairos-io#294)
Browse files Browse the repository at this point in the history
* 🐛 Add default_path oem file

* 🤖 Add specific test for mountcheck
  • Loading branch information
mudler authored Oct 27, 2022
1 parent 4217c04 commit 000ed7a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions overlay/files/system/oem/25_default_paths.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
name: "default-paths"
stages:
fs.before:
- name: "Default system dirs"
directories:
- path: /var/lib/longhorn
6 changes: 6 additions & 0 deletions tests/autoinstall_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,12 @@ var _ = Describe("kairos autoinstall test", Label("autoinstall-test"), func() {
Expect(out).To(ContainSubstring("bpf"))
})

It("has additional mount specified, with no dir in rootfs", func() {
out, err := Sudo("mount")
Expect(err).ToNot(HaveOccurred())
Expect(out).To(ContainSubstring("/var/lib/longhorn"))
})

It("has corresponding state", func() {
out, err := Sudo("kairos-agent state")
Expect(err).ToNot(HaveOccurred())
Expand Down

0 comments on commit 000ed7a

Please sign in to comment.