fickit: crypt main partition

This commit is contained in:
nemunaire 2020-01-30 19:03:14 +01:00
commit 56c6f282c4
4 changed files with 22 additions and 8 deletions

View file

@ -1,11 +1,11 @@
#!/bin/sh
if [ -d /containers/onboot/004-admin-ip-setup ]; then
LOWER=/containers/onboot/004-admin-ip-setup/lower
if [ -d /containers/onboot/004-synchro-ip-setup ]; then
LOWER=/containers/onboot/004-synchro-ip-setup/lower
elif [ -d /containers/onboot/004-frontal-ip-setup ]; then
LOWER=/containers/onboot/004-frontal-ip-setup/lower
else
nsenter -t 1 -a "$0" $@
nsenter -t 1 -m -u -i -p -- "$0" $@
exit $?
fi

View file

@ -1,3 +1,3 @@
#!/bin/sh
nsenter -t $(pgrep mysql | head -1) -a mysql $@
nsenter -t $(pgrep mysql | head -1) -m -u -i -n -p -- mysql $@