1
0
mirror of https://github.com/kairos-io/immucore.git synced 2025-05-09 16:47:01 +00:00

Recover original 755 perms for dir creation

Signed-off-by: Itxaka <itxaka@kairos.io>
This commit is contained in:
Itxaka 2024-04-10 11:22:15 +02:00
parent ac1c1be9f8
commit c97a3ae559

View File

@ -257,8 +257,8 @@ func (s *State) UkiPivotToSysroot(g *herd.Graph) error {
// Now move the system mounts into the new dir
for _, d := range mountPoints {
newDir := filepath.Join(s.path(cnst.UkiSysrootDir), d)
if dirStat, err := os.Stat(newDir); err != nil {
err = os.MkdirAll(newDir, dirStat.Mode())
if _, err := os.Stat(newDir); err != nil {
err = os.MkdirAll(newDir, 0755)
if err != nil {
internalUtils.Log.Err(err).Str("what", newDir).Msg("mkdir")
}