github.com/mvdan/u-root-coreutils@v0.0.0-20230122170626-c2eef2898555/pkg/efivarfs/doc.go (about)

     1  // Copyright 2022 the u-root Authors. All rights reserved
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  // DISCLAIMER
     6  // The code of pkg/efivarfs was originally based on this file
     7  // github.com/canonical/go-efilib/blob/main/vars_linux.go so
     8  // credits go their authors. The code has undergone several revisions
     9  // and has been changed up several times, so that only most crucial parts
    10  // still look familiar to the old code. At the date of writing the code
    11  // in u-root has been simplified so much, that it doesn't resemble most of
    12  // the old code anymore. If a more broader set of features and edge cases
    13  // is required then users should look into importing canonicals library
    14  // instead, as this code only covers the bare minimum!
    15  // Canonical has been made aware this simplified version of their file
    16  // exists and the reason a simplified version had to be created in the
    17  // first place were license concerns.
    18  
    19  // The code allows interaction with the efivarfs via u-root which means
    20  // both read and write support. As the efivarfs is part of the Linux kernel,
    21  // this code is only intended to be run under Linux environments.
    22  
    23  package efivarfs