diff --git a/pkg/hostman/guestfs/fsdriver/linux.go b/pkg/hostman/guestfs/fsdriver/linux.go index e9fd3d569a..565a2fcf35 100644 --- a/pkg/hostman/guestfs/fsdriver/linux.go +++ b/pkg/hostman/guestfs/fsdriver/linux.go @@ -1367,6 +1367,9 @@ func (d *SOpenWrtRootFs) RootSignatures() []string { func (d *SOpenWrtRootFs) DeployHostname(rootFs IDiskPartition, hn, domain string) error { spath := "/etc/config/system" + if !rootFs.Exists(spath, false) { + return nil + } bcont, err := rootFs.FileGetContents(spath, false) if err != nil { return err