installerview

package
v0.0.0-...-ac6d1fa Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 2, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssignDbusPermissions

func AssignDbusPermissions() (err error)

This function is a workaround to deal with squashed, required permissions within the iso_initrd environment. A required file for launching a dbus service, /usr/libexec/dbus-daemon-lauch-helper, must have the group messagebus with permissions 4750 in order to start properly. As a part of the calamares setup process, kpmcore is launched using this dbus-daemon-launch-helper. When initially loaded the iso_initrd has squashed the group to be root causing an error to occur during the calamares validation phase for the partition module. By reseting the permissions at runtime of the environment, the issue is resolved. But, it still remains unknown why the group is being set to root when the iso_initrd is loaded. Links to Information on the Issue:

https://invent.kde.org/system/kpmcore/-/issues/15
https://forums.gentoo.org/viewtopic-t-1079170-start-0.html
https://forums.freebsd.org/threads/gdbus-error-org-freedesktop-dbus-error-spawn-execfailed.91776/
https://forums.gentoo.org/viewtopic-t-1007656-start-0.html

Types

type InstallerView

type InstallerView struct {
	// contains filtered or unexported fields
}

InstallerView contains the installer selection UI.

func New

func New(calamaresInstallFunc func()) *InstallerView

New creates and returns a new InstallerView.

func (*InstallerView) HandleInput

func (iv *InstallerView) HandleInput(event *tcell.EventKey) *tcell.EventKey

HandleInput handles custom input.

func (*InstallerView) Initialize

func (iv *InstallerView) Initialize(backButtonText string, sysConfig *configuration.SystemConfig, cfg *configuration.Config, app *tview.Application, nextPage, previousPage, quit, refreshTitle func()) (err error)

Initialize initializes the view.

func (*InstallerView) Name

func (iv *InstallerView) Name() string

Name returns the friendly name of the view.

func (*InstallerView) NeedsToPrompt

func (iv *InstallerView) NeedsToPrompt() bool

NeedsToPrompt returns true if this view should be shown to the user so an installer can be selected.

func (*InstallerView) OnShow

func (iv *InstallerView) OnShow()

OnShow gets called when the view is shown to the user

func (*InstallerView) Primitive

func (iv *InstallerView) Primitive() tview.Primitive

Primitive returns the primary primitive to be rendered for the view.

func (*InstallerView) Reset

func (iv *InstallerView) Reset() (err error)

Reset resets the page, undoing any user input.

func (*InstallerView) Title

func (iv *InstallerView) Title() string

Title returns the title of the view.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL