add ssh ecryptfs auto mount

This commit is contained in:
Yann Autissier
2022-04-10 02:21:44 +00:00
parent d328ae3e24
commit e6fe7dcf0c
9 changed files with 133 additions and 39 deletions
+2 -1
View File
@@ -1,9 +1,10 @@
#!/bin/sh
[ -n "${DEBUG}" ] && set -x
set -eu
LANG=${LANG:-C.UTF-8}
LOCALES=${LOCALES:-${LANG} ${LANG##*.}}
printf "LANG=%s\n" "${LANG}" > /etc/default/locale
rm /etc/locale.gen && printf "%s\n" "${LOCALES}" |while read locale; do
rm /etc/locale.gen && printf "%s\n" "${LOCALES}" |while read -r locale; do
printf "%s\n" "${locale}" >> /etc/locale.gen
done && locale-gen