Skip to content

Commit

Permalink
zfs-chroot: small visual fixes/improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
zdykstra committed May 31, 2023
1 parent 35c7f23 commit 9343eb5
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions zfsbootmenu/bin/zfs-chroot
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ if ! is_snapshot "${selected}" && ! is_writable "${pool}" ; then
fi
fi

reset
clear

if ! mountpoint="$( allow_rw=yes mount_zfs "${selected}" )"; then
Expand All @@ -60,7 +61,7 @@ else
efivarmode="rw"
fi

notices+=( "* $( colorize orange "${selected}" ) is mounted ${writemode}" )
notices+=( "$(colorize white "*" ) $( colorize orange "${selected}" ) is mounted ${writemode}" )

# Track submounts so we know how to clean up on exit
trap cleanup HUP INT QUIT ABRT EXIT
Expand All @@ -86,7 +87,7 @@ if mount_efivarfs "${efivarmode}" ; then
mount_efivarfs "${efivarmode}" "${efivarfs}" \
&& _mnt=( "${efivarfs}" "${_mnt[@]}" )

notices+=( "\n* $( colorize orange "efivarfs" ) is mounted ${writemode}" )
notices+=( "\n$(colorize white "*" ) $( colorize orange "efivarfs" ) is mounted ${writemode}" )
fi

# Not all /dev filesystems have /dev/pts
Expand All @@ -113,7 +114,7 @@ if [ -z "${_SHELL}" ]; then
exit 1
fi

notices+=( "\n* $( colorize orange "/tmp" ) is mounted $( colorize red "read/write")" )
notices+=( "\n$(colorize white "*" ) $( colorize orange "/tmp" ) is mounted $( colorize red "read/write")" )
echo -e "${notices[*]}\n"

# regardless of shell, set PS1
Expand Down

0 comments on commit 9343eb5

Please sign in to comment.