Skip to content

Commit

Permalink
comment: Add an explicit warning about bricking a device
Browse files Browse the repository at this point in the history
Signed-off-by: Dmitrii Okunev <[email protected]>
  • Loading branch information
xaionaro authored and GanShun committed Feb 12, 2021
1 parent 8370aa6 commit 91b79e9
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions pkg/uefi/uefi.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,16 @@ var (
// ReadOnly breaks firmware modification operations, but optimizes
// memory and CPU consumption for read-only operations.
//
// DO NOT USE THIS OPTION UNLESS YOU KNOW WHAT ARE YOU DOING.
// DO NOT USE THIS OPTION UNLESS YOU KNOW WHAT ARE YOU DOING. IF YOU
// WILL MODIFY A FIRMWARE WITH THIS OPTION BEING ENABLED, THIS FIRMWARE
// MIGHT BRICK YOUR DEVICE.
ReadOnly = false

// DisableDecompression disables section decompression.
//
// DO NOT USE THIS OPTION UNLESS YOU KNOW WHAT ARE YOU DOING.
// DO NOT USE THIS OPTION UNLESS YOU KNOW WHAT ARE YOU DOING. IF YOU
// WILL MODIFY A FIRMWARE WITH THIS OPTION BEING ENABLED, THIS FIRMWARE
// MIGHT BRICK YOUR DEVICE.
DisableDecompression = false
)

Expand Down

0 comments on commit 91b79e9

Please sign in to comment.