mirror of
https://github.com/vyos/vyos-build.git
synced 2025-10-01 20:28:40 +02:00
T7278: Fix missing cracklib database files on image update
This commit is contained in:
parent
feb144cdd7
commit
0646013a7c
13
data/live-build-config/hooks/live/40-init-cracklib-db.chroot
Executable file
13
data/live-build-config/hooks/live/40-init-cracklib-db.chroot
Executable file
@ -0,0 +1,13 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
CRACKLIB_DIR=/var/cache/cracklib
|
||||||
|
CRACKLIB_DB=cracklib_dict
|
||||||
|
|
||||||
|
if [ ! -f "${CRACKLIB_DIR}/${CRACKLIB_DB}.pwd" ]; then
|
||||||
|
echo "I: Creating the cracklib database ${CRACKLIB_DIR}/${CRACKLIB_DB}"
|
||||||
|
mkdir -p $CRACKLIB_DIR
|
||||||
|
|
||||||
|
/usr/sbin/create-cracklib-dict -o $CRACKLIB_DIR/$CRACKLIB_DB \
|
||||||
|
/usr/share/dict/cracklib-small
|
||||||
|
fi
|
||||||
|
|
||||||
@ -44,7 +44,8 @@ usr/games/*
|
|||||||
usr/local/games/*
|
usr/local/games/*
|
||||||
|
|
||||||
# T5511: We do not need any caches on the system (will be recreated when needed).
|
# T5511: We do not need any caches on the system (will be recreated when needed).
|
||||||
var/cache/*
|
# T7278: We need directory created by python3-cracklib for password checks
|
||||||
|
var/cache/!(cracklib)
|
||||||
|
|
||||||
# T5511: We do not need any log-files on the system (will be recreated when needed).
|
# T5511: We do not need any log-files on the system (will be recreated when needed).
|
||||||
var/log/*.log
|
var/log/*.log
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user