Skip to content

Conversation

@ahesford
Copy link
Member

@ahesford ahesford commented Apr 8, 2021

zfsbootmenu-parse-commandline.sh defines several configuration variables based on KCL arguments; zfsbootmenu-exec.sh originally exported those to the environment for use by zfsbootmenu-countdown.sh and zfsbootmenu.sh. This works fine if zfsbootmenu.sh is only ever run in a local session.

When connecting via SSH and launching zfsbootmenu from the shell, these configuration variables are not accessible. The simple solution is to write the configuration into a file that can be sourced by both zfsbootmenu-countdown.sh and zfsbootmenu.sh to populate their environments regardless of the way they are called.

The boot-environment list has been renamed from env to bootenvs to avoid confusion with the environment file.

zfsbootmenu-parse-commandline.sh defines several configuration variables
based on KCL arguments; zfsbootmenu-exec.sh originally exported those to
the environment for use by zfsbootmenu-countdown.sh and zfsbootmenu.sh.
This works fine if zfsbootmenu.sh is only ever run in a local session.

When connecting via SSH and launching zfsbootmenu from the shell, these
configuration variables are not accessible. The simple solution is to
write the configuration into a file that can be sourced by both
zfsbootmenu-countdown.sh and zfsbootmenu.sh to populate their
environments regardless of the way they are called.

The boot-environment list has been renamed from "env" to "bootenvs" to
avoid confusion with the "environment" file.
@ahesford ahesford requested a review from zdykstra April 8, 2021 04:29
@ahesford ahesford closed this in 9875115 Apr 9, 2021
@ahesford ahesford deleted the env-save branch April 9, 2021 16:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants