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
Bash in POSIX mode #2522
Labels
bug
Our bugs
Comments
aafeijoo-suse
added a commit
to aafeijoo-suse/dracut
that referenced
this issue
Sep 22, 2023
3 tasks
aafeijoo-suse
added a commit
to aafeijoo-suse/dracut
that referenced
this issue
Oct 27, 2023
IMO better try to address the bashisms so that the generated initramfs can be used with dash or busybox. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Apparently some bashisms silently work with recent versions of Bash (tested ok > 5.1), but maybe we should workaround this issue for consistency. I see 2 options:
unset POSIXLY_CORRECT
at the beginning ofdracut.sh
.[[ -n $POSIXLY_CORRECT ]]
along with the Bash version, and exit in that case.But if we decide to fix this, IMO the 2nd option is the best, because some scripts added by modules running at boot require bashisms.
The text was updated successfully, but these errors were encountered: