Compare commits

..

2 Commits

Author SHA1 Message Date
32a3bad93e
cmd/flaunch: implement app bundle wrapper
All checks were successful
Tests / Go tests (push) Successful in 36s
Nix / NixOS tests (push) Successful in 3m37s
This tool creates fortify configuration for running an application bundle. The activate action wraps a home-manager activation package and ensures each generation gets activated once.

Signed-off-by: Ophestra <cat@gensokyo.uk>
2024-12-26 13:21:49 +09:00
1e534950d8
internal: include path to fortify main program
Signed-off-by: Ophestra <cat@gensokyo.uk>
2024-12-26 12:48:48 +09:00

View File

@ -153,14 +153,14 @@ func (s *SandboxConfig) Bwrap(os linux.System) (*bwrap.Config, error) {
} }
if s.AutoEtc { if s.AutoEtc {
etc := s.Etc if s.Etc == "" {
if etc == "" { conf.Bind("/etc", Tmp+"/etc")
etc = "/etc" } else {
conf.Bind(s.Etc, Tmp+"/etc")
} }
conf.Bind(etc, Tmp+"/etc")
// link host /etc contents to prevent passwd/group from being overwritten // link host /etc contents to prevent passwd/group from being overwritten
if d, err := os.ReadDir(etc); err != nil { if d, err := os.ReadDir("/etc"); err != nil {
return nil, err return nil, err
} else { } else {
for _, ent := range d { for _, ent := range d {