🛡️ Cloud native guardian for persistent data in the edge
Go to file
Dimitris Karakasilis 0e278a89f0
Don't let the mapping be nil when reading an empty file
e.g. when we first create it

because it throws this error:

```
panic: assignment to entry in nil map

goroutine 1 [running]:
github.com/kairos-io/kcrypt/pkg/partition_info.PartitionInfo.UpdateMapping({{0xa60325?, 0x18?}, 0x0?}, {0xc000302000?, 0x1?})
	/go/pkg/mod/github.com/kairos-io/kcrypt@v0.4.2/pkg/partition_info/partition_info.go:69 +0x99

```

Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
2022-11-15 19:45:44 +02:00
.github/workflows Add github action pipeline to run unit tests 2022-11-11 11:47:18 +02:00
dracut/29kcrypt Conditionals bring still deps in systemd 2022-10-15 21:14:06 +00:00
examples/dummy-discovery Minor fixups 2022-10-04 17:08:20 +00:00
pkg Don't let the mapping be nil when reading an empty file 2022-11-15 19:45:44 +02:00
tests/assets Create parition info parsing library 2022-11-11 10:55:46 +02:00
dracut.conf Initial import 2022-10-03 11:03:48 +02:00
Earthfile Fix typo in name, bad function call and version of the binary 2022-11-15 15:09:56 +02:00
go.mod Create parition info parsing library 2022-11-11 10:55:46 +02:00
go.sum Create parition info parsing library 2022-11-11 10:55:46 +02:00
LICENSE Add LICENSE file 2022-10-06 14:53:51 +00:00
main.go Fix typo in name, bad function call and version of the binary 2022-11-15 15:09:56 +02:00