Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UX Tweaks [2/2] #600

Merged
merged 11 commits into from
Aug 21, 2019
Merged

UX Tweaks [2/2] #600

merged 11 commits into from
Aug 21, 2019

Commits on Aug 5, 2019

  1. config-gui: add optional param to set file_selector title

    Signed-off-by: Matt DeVillier <[email protected]>
    MrChromebox committed Aug 5, 2019
    Configuration menu
    Copy the full SHA
    5ca3069 View commit details
    Browse the repository at this point in the history
  2. config-gui: add optional param to bypass menu

    Add optional parameter to bypass menu selection and
    immediately select a menu option. This allows us to call
    the 'Set Boot Device' option directly, saving the user
    an unnecessary step.
    
    Signed-off-by: Matt DeVillier <[email protected]>
    MrChromebox committed Aug 5, 2019
    Configuration menu
    Copy the full SHA
    3439403 View commit details
    Browse the repository at this point in the history
  3. config-gui: filter out invalid boot device options

    use similar filtering logic as with USB drives to provide
    the user a more sane list of boot device options. Show user
    only valid bootable partitions, not block devices.
    
    There's no point in showing /dev/nvme0 and /dev/nvme0n1 (eg)
    when /dev/nvme0n1p[1..n] (eg) exist, as the former are not
    valid boot devices.
    
    Signed-off-by: Matt DeVillier <[email protected]>
    MrChromebox committed Aug 5, 2019
    Configuration menu
    Copy the full SHA
    c982be5 View commit details
    Browse the repository at this point in the history
  4. gui-init: don't reboot after updating TOTP/HOTP

    Updating TOTP/HOTP is mainly necessary after a user updates
    their firmware, and no need to force another reboot.
    
    Signed-off-by: Matt DeVillier <[email protected]>
    MrChromebox committed Aug 5, 2019
    Configuration menu
    Copy the full SHA
    258783e View commit details
    Browse the repository at this point in the history
  5. gui-init: use direct boot device selection

    If the boot device is invalid or unabled to be mounted
    and the user opts to select a new boot device, jump
    directly to that menu option and avoid the additional
    step of showing the config main menu.
    
    Signed-off-by: Matt DeVillier <[email protected]>
    MrChromebox committed Aug 5, 2019
    Configuration menu
    Copy the full SHA
    0690c8c View commit details
    Browse the repository at this point in the history
  6. config-gui: add 'Full Reset' option

    Add Full Reset option to clear all GPG keys and user settings,
    both from the local filesystem and running firmware, and
    clear/reset the TPM
    
    Signed-off-by: Matt DeVillier <[email protected]>
    MrChromebox committed Aug 5, 2019
    Configuration menu
    Copy the full SHA
    928f003 View commit details
    Browse the repository at this point in the history
  7. gpg_flash_rom(): ensure files exist before adding to CBFS

    Check that any files added to cbfs exist before attempting to
    add them, so flashing doesn't fail after a reset.
    
    Signed-off-by: Matt DeVillier <[email protected]>
    MrChromebox committed Aug 5, 2019
    Configuration menu
    Copy the full SHA
    29f89ae View commit details
    Browse the repository at this point in the history
  8. kecec_select_boot: default to Y when setting new boot option

    Next prompt will be to ensure GPG key is attached, which defaults
    to Y, so default here as well for consistency
    
    Signed-off-by: Matt DeVillier <[email protected]>
    MrChromebox committed Aug 5, 2019
    Configuration menu
    Copy the full SHA
    5ff3849 View commit details
    Browse the repository at this point in the history
  9. confirm_gpg_card: prompt for retry on detection failure

    Initial card detection can sometimes fail, so prompt the user
    to remove/reinsert their GPG card before retrying. Since
    errexit is likely set, disable it prior to calling --card-status so
    we can handle the error ourself, then re-set if necessary when done.
    
    Signed-off-by: Matt DeVillier <[email protected]>
    MrChromebox committed Aug 5, 2019
    Configuration menu
    Copy the full SHA
    c33209a View commit details
    Browse the repository at this point in the history
  10. gpg_add_key_reflash: handle user cancellation

    if user chooses abort option, exit without flashing ROM
    
    Signed-off-by: Matt DeVillier <[email protected]>
    MrChromebox committed Aug 5, 2019
    Configuration menu
    Copy the full SHA
    e8e1032 View commit details
    Browse the repository at this point in the history
  11. flash.sh: persist serial in cbfs

    Librem devices store their serial number as a text file
    in cbfs; persist this across flashes.
    
    Signed-off-by: Matt DeVillier <[email protected]>
    MrChromebox committed Aug 5, 2019
    Configuration menu
    Copy the full SHA
    a27affc View commit details
    Browse the repository at this point in the history