If, by default, a user's PATH does not contain /sbin and /usr/sbin, we
may have a hard time finding sysctl to adjust the kernel core pattern.
Signed-off-by: Joao Eduardo Luis <joao@suse.de>
PATH=$(pwd)/bin:$PATH
+# add /sbin and /usr/sbin to PATH to find sysctl in those cases where the
+# user's PATH does not get these directories by default (e.g., tumbleweed)
+PATH=$PATH:/sbin:/usr/sbin
+
# TODO: Use getops
dryrun=false
if [[ "$1" = "--dry-run" ]]; then