distro/fedora: hook up custom dirs / files for iot raw-image
Set the user provided BP customizations related to custom files and directories to the iot raw-image type, to ensure that these get created while deploying a commit. Signed-off-by: Tomáš Hozza <thozza@redhat.com>
This commit is contained in:
parent
bca3f72657
commit
edf3a38b29
1 changed files with 10 additions and 0 deletions
|
|
@ -412,6 +412,16 @@ func iotRawImage(workload workload.Workload,
|
|||
img.Users = users.UsersFromBP(customizations.GetUsers())
|
||||
img.Groups = users.GroupsFromBP(customizations.GetGroups())
|
||||
|
||||
var err error
|
||||
img.Directories, err = blueprint.DirectoryCustomizationsToFsNodeDirectories(customizations.GetDirectories())
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
img.Files, err = blueprint.FileCustomizationsToFsNodeFiles(customizations.GetFiles())
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
// "rw" kernel option is required when /sysroot is mounted read-only to
|
||||
// keep stateful parts of the filesystem writeable (/var/ and /etc)
|
||||
img.KernelOptionsAppend = []string{"modprobe.blacklist=vc4", "rw"}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue