mirror of
https://github.com/lingble/talos.git
synced 2025-12-10 17:45:30 +00:00
refactor: improve installation reliability
This change aims to make installations more unified and reliable. It introduces the concept of a mountpoint manager that is capable of mounting, unmounting, and moving a set of mountpoints in the correct order. Signed-off-by: Andrew Rynhard <andrew@andrewrynhard.com>
This commit is contained in:
@@ -123,7 +123,7 @@ func ifup(ifname string, mtu int) (err error) {
|
||||
|
||||
func defaultInterface() string {
|
||||
netif := DefaultInterface
|
||||
if option := kernel.Cmdline().Get(constants.KernelParamDefaultInterface).First(); option != nil {
|
||||
if option := kernel.ProcCmdline().Get(constants.KernelParamDefaultInterface).First(); option != nil {
|
||||
netif = *option
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user