Skip to content

Commit

Permalink
Update error messages to print 'zedenv set
Browse files Browse the repository at this point in the history
  • Loading branch information
johnramsden committed Oct 14, 2018
1 parent ed2aa99 commit 193ff8d
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions zedenv/plugins/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ def plugin_property_error(self, prop):
"level": "EXCEPTION",
"message": (f"To use the {self.bootloader} plugin, use the default setting '{prop}', "
f"or set a different value\n. To set it use the command (replacing with "
f"your pool and dataset)\n'zfs set "
f"org.zedenv.{self.bootloader}:{prop}='<new mount>' zpool/ROOT/default\n")
f"your pool and dataset)\n'zedenv set "
f"org.zedenv.{self.bootloader}:{prop}='<new mount>'\n")
}, exit_on_error=True)

def check_zedenv_properties(self):
Expand Down Expand Up @@ -181,9 +181,8 @@ def modify_fstab(self, be_mountpoint: str, replace_pattern: str, new_entry: str)
else:
ZELogger.log({
"level": "INFO",
"message": (f"Couldn't find bindmounted directory to replace, your system "
"may not be configured for boot environments with bindmounted "
"'/boot'.")
"message": (f"Couldn't find directory to replace in fstab, your system "
"may not be configured correctly for boot environments.")
})

if not self.noop:
Expand Down

0 comments on commit 193ff8d

Please sign in to comment.