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

Export ZFS jail give a false error of "Options --gz, --raw, --safe, --verbose are valid for ZFS configured systems only" #661

Open
Elektrokongen opened this issue Jan 7, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@Elektrokongen
Copy link

Elektrokongen commented Jan 7, 2024

I noticed an false error that prevents me from exporting my ZFS jails. There is a missing ! in the if statement on line 215 in the file /usr/local/share/bastille/export.sh

HERE IS THE CURRENT IF STATEMENT

if checkyesno bastille_zfs_enable; then
if [ -n "${GZIP_EXPORT}" -o -n "${RAW_EXPORT}" -o -n "${SAFE_EXPORT}" -o "${OPT_ZSEND}" = "-Rv" ]; then
error_exit "Options --gz, --raw, --safe, --verbose are valid for ZFS configured systems only."
fi
fi

HERE IS THE FIX I IMPLEMENTED TO GET IT WORKING

if ! checkyesno bastille_zfs_enable; then
if [ -n "${GZIP_EXPORT}" -o -n "${RAW_EXPORT}" -o -n "${SAFE_EXPORT}" -o "${OPT_ZSEND}" = "-Rv" ]; then
error_exit "Options --gz, --raw, --safe, --verbose are valid for ZFS configured systems only."
fi
fi

@Elektrokongen Elektrokongen added the bug Something isn't working label Jan 7, 2024
@Elektrokongen
Copy link
Author

Elektrokongen commented Jan 7, 2024

I have made an update to the current master, but I need a branch with write rigths in order to commit the update :) I cant seem to find any button on Git that allows me to create a branch..

@JRGTH
Copy link
Collaborator

JRGTH commented Jan 8, 2024

I have made an update to the current master, but I need a branch with write rigths in order to commit the update :) I cant seem to find any button on Git that allows me to create a branch..

I can confirm and validate this small bug as well, Christer will review the PR and merge wen time permits, thanks for the bug report and fix.

PS. You can also use GitHub Desktop Win/Mac, or GitHub Desktop Linux for easy fork/branch creation/deletion/fetch etc.

@Elektrokongen
Copy link
Author

I see a fork option yes. I will try that next time, thx 👍

@mgstoyanov
Copy link

What's the status of this? I hit the same issue and the fix mentioned seems to work. I don't mind opening a PR for it if that will help speed things up...

mgstoyanov added a commit to Vertalo/bastille that referenced this issue Mar 13, 2024
@KiriakosGeorgiou
Copy link

What's the status of this? I hit the same issue and the fix mentioned seems to work. I don't mind opening a PR for it if that will help speed things up...

I suppose the committers of this fine utility are busy with their jobs like the rest of us :) thanks for the fix to @Elektrokongen so we ZFS users can enjoy no downtime backups.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants