Skip to content

Commit

Permalink
Merge pull request #632 from jlebon/pr/fcos-relabel
Browse files Browse the repository at this point in the history
stages/files: relabel /var/home and /var/roothome
  • Loading branch information
ajeddeloh authored Sep 17, 2018
2 parents a52af99 + 45b7518 commit e7dd6ae
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion internal/exec/stages/files/files.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ OnFailureJobMode=replace-irreversibly
[Service]
Type=oneshot
ExecStart=` + distro.RestoreconCmd() + ` -0vRf /etc/selinux/ignition.relabel
ExecStart=` + distro.RestoreconCmd() + ` -0vRif /etc/selinux/ignition.relabel
ExecStart=/usr/bin/rm /etc/selinux/ignition.relabel
RemainAfterExit=yes`,
}
Expand Down
3 changes: 3 additions & 0 deletions internal/exec/stages/files/passwd.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ func (s *stage) createPasswd(config types.Config) error {
"/etc/.pwd.lock",
"/home",
"/root",
// for OSTree-based systems (newer restorecon doesn't follow symlinks)
"/var/home",
"/var/roothome",
)
}

Expand Down

0 comments on commit e7dd6ae

Please sign in to comment.