borrar rootfs cada vez
This commit is contained in:
parent
b8e46f1e0f
commit
af3e491626
1 changed files with 2 additions and 0 deletions
2
main.go
2
main.go
|
@ -17,6 +17,8 @@ func main() {
|
||||||
config, err := readConfig()
|
config, err := readConfig()
|
||||||
must(err)
|
must(err)
|
||||||
|
|
||||||
|
must(os.RemoveAll("rootfs/"))
|
||||||
|
|
||||||
must(os.MkdirAll("rootfs/etc/apk/keys", 0700))
|
must(os.MkdirAll("rootfs/etc/apk/keys", 0700))
|
||||||
must(os.WriteFile("rootfs/etc/apk/repositories", []byte(
|
must(os.WriteFile("rootfs/etc/apk/repositories", []byte(
|
||||||
`https://dl-cdn.alpinelinux.org/alpine/v3.17/main
|
`https://dl-cdn.alpinelinux.org/alpine/v3.17/main
|
||||||
|
|
Loading…
Reference in a new issue