image: add users and groups to edge/iot raw images
This commit is contained in:
parent
5bc66f0665
commit
6cd3a34099
5 changed files with 51 additions and 11 deletions
|
|
@ -166,11 +166,14 @@ func (p *OSTreeDeployment) serialize() osbuild.Pipeline {
|
|||
if err != nil {
|
||||
panic("password encryption failed")
|
||||
}
|
||||
usersStage.MountOSTree(p.osName, p.osTreeRef, 0)
|
||||
pipeline.AddStage(usersStage)
|
||||
}
|
||||
|
||||
if len(p.Groups) > 0 {
|
||||
pipeline.AddStage(osbuild.GenGroupsStage(p.Groups))
|
||||
grpStage := osbuild.GenGroupsStage(p.Groups)
|
||||
grpStage.MountOSTree(p.osName, p.osTreeRef, 0)
|
||||
pipeline.AddStage(grpStage)
|
||||
}
|
||||
|
||||
// if no root password is set, lock the root account
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue