Skip to content

Integrate finalize envs and authentication on repos - #2

Open
geaaru wants to merge 5 commits into
Luet-lab:masterfrom
geaaru:integrate-finalize-envs
Open

Integrate finalize envs and authentication on repos#2
geaaru wants to merge 5 commits into
Luet-lab:masterfrom
geaaru:integrate-finalize-envs

Conversation

@geaaru

@geaaru geaaru commented Aug 11, 2021

Copy link
Copy Markdown

Hereinafter the list of changes:

  • add support to finalizer_envs on Luet config section
  • add support to authentication section inside the repositories configurable on Luet config section
  • move creation of commons dirs before luet install phase

Comment thread pkg/burner/luet.go Outdated
func copyConfig(config, rootfsWanted string, fs vfs.FS, s *schema.SystemSpec) error {
// cfg, _ := fs.RawPath(s.Luet.Config)
repos, err := s.Luet.Repositories.Marshal()
repos, err := s.Luet.Marshal()

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
repos, err := s.Luet.Marshal()
luetCfg, err := s.Luet.Marshal()

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah, true.

@geaaru
geaaru force-pushed the integrate-finalize-envs branch from b46a830 to 251de26 Compare August 11, 2021 13:33
@geaaru

geaaru commented Aug 11, 2021

Copy link
Copy Markdown
Author

I'm not sure about the name of the --skip-cleanup option. Let me know wdyt.

@geaaru
geaaru force-pushed the integrate-finalize-envs branch from e0dfd2b to 6686456 Compare August 21, 2021 16:32
@geaaru

geaaru commented Aug 29, 2021

Copy link
Copy Markdown
Author

Can we go ahead with this?

Comment thread pkg/burner/burner.go

} else if len(s.Packages.Rootfs) > 0 {

if s.EnsureCommonDirs {

@mudler mudler Oct 5, 2021

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Disjoin this if and do this operation just once please

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sorry, but after two months it's a bit hard to follow the speech. Is not executed one time the method prepareRootfs?
What means do this operation just once?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah maybe, I understood. But you can do this only after unpack of the image and before luet install. The previous implementation was after luet install and this was wrong because the commons directories must be available before you begin to install the packages else the installation failed.

@geaaru geaaru Oct 6, 2021

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe the speech is: do you want to permit to define the list of the packages to install also with image? If yes we could move EnsureCommonsDir later and only one time. But before LuetInstall.

@mudler mudler left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just a minor nitpick but looks good

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants