-
Notifications
You must be signed in to change notification settings - Fork 420
T7278: Fix python3-cracklib database creation on update #935
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
T7278: Fix python3-cracklib database creation on update #935
Conversation
👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updating from an older image, namely one preceding the original addition of password strength check, this fix does not work to avoid the problem of T7278 --- I have no idea why yet, but we will hold off on merging until sorted out ...
Original image version: 1.5-rolling-202502242009
Update to current with this PR
I would suggest grabbing on older rolling release, say
https://github.com/vyos/vyos-nightly-build/releases/download/1.5-rolling-202502220006/vyos-1.5-rolling-202502220006-generic-amd64.iso
and checking to rule out (my) user error, and investigate root cause.
f0f59c0
to
ad69c72
Compare
@jestabro After a deeper investitgation and some tinkering while following your advice to test image update against an older release I have pinpointed the issue - the issue was, basically, in the build sequence - the script I've added executed as expected, BUT for no gain, because we generate the image
and decided to change the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have nothing against the PR, just a few minor suggestions.
ad69c72
to
5b088c8
Compare
@dmbaturin thanks for the review! I've updated the PR according to the suggestions |
There was also a suggestion to fix the grammar of the log message and move it inside the conditional. Since it will only be shown if the cracklib database doesn't already exist, it can be just "Creating cracklib database in ...", without the "if it does not exist" part. |
5b088c8
to
0646013
Compare
My bad, missed it somehow; fixed right now |
Change summary
Explicitly omit directory in /var/cache created by cracklib in the exclusion list for
mksquashfs
and add a script that creates this directory and required files in thechroot
environment during build.Types of changes
Related Task(s)
https://vyos.dev/T7278
Related PR(s)
Blocks: vyos/vyos-1x#4413
Checklist: