CI: Fix Python modules in AppImage

- set PYTHONPATH inside the AppImage so libcalamares is found
 - add Python module to the sample configuration
 - relax password requirements (while we're at it)
This commit is contained in:
Adriaan de Groot 2019-03-19 11:33:58 -04:00
parent ed2f9b744d
commit c9026b429d
3 changed files with 2 additions and 3 deletions

View File

@ -176,6 +176,7 @@ cat > "$IMAGE_DIR/usr/bin/calamares" <<"EOF"
# Calamares proxy-script # Calamares proxy-script
export XDG_DATA_DIRS="$APPDIR/usr/share/calamares:" export XDG_DATA_DIRS="$APPDIR/usr/share/calamares:"
export XDG_CONFIG_DIRS="$APPDIR/etc/calamares:$D/usr/share:" export XDG_CONFIG_DIRS="$APPDIR/etc/calamares:$D/usr/share:"
export PYTHONPATH=$APPDIR/usr/lib:
cd "$APPDIR" cd "$APPDIR"
exec "$APPDIR"/usr/bin/calamares.bin -X "$@" exec "$APPDIR"/usr/bin/calamares.bin -X "$@"
EOF EOF

View File

@ -55,8 +55,5 @@ doReusePassword: true
passwordRequirements: passwordRequirements:
minLength: -1 # Password at least this many characters minLength: -1 # Password at least this many characters
maxLength: -1 # Password at most this many characters maxLength: -1 # Password at most this many characters
libpwquality:
- minlen=0
- minclass=0
userShell: /bin/bash userShell: /bin/bash

View File

@ -19,6 +19,7 @@ sequence:
- users - users
- summary - summary
- exec: - exec:
- dummypython
- locale - locale
- keyboard - keyboard
- users - users