mirror of
https://github.com/hackacad/bastille.git
synced 2025-12-12 17:59:58 +01:00
Merge pull request #1220 from BastilleBSD/tschettervictor-patch-1
This commit is contained in:
@@ -159,12 +159,14 @@ get_jail_info() {
|
|||||||
# Get jail type
|
# Get jail type
|
||||||
if grep -qw "${bastille_jailsdir}/${JAIL_NAME}/root/.bastille" "${bastille_jailsdir}/${JAIL_NAME}/fstab"; then
|
if grep -qw "${bastille_jailsdir}/${JAIL_NAME}/root/.bastille" "${bastille_jailsdir}/${JAIL_NAME}/fstab"; then
|
||||||
JAIL_TYPE="thin"
|
JAIL_TYPE="thin"
|
||||||
|
elif [ "$(grep -c "^linprocfs" "${bastille_jailsdir}/${JAIL_NAME}/fstab" 2> /dev/null)" -gt 0 ]; then
|
||||||
|
JAIL_TYPE="linux"
|
||||||
elif checkyesno bastille_zfs_enable; then
|
elif checkyesno bastille_zfs_enable; then
|
||||||
if [ "$(zfs get -H -o value origin ${bastille_zfs_zpool}/${bastille_zfs_prefix}/jails/${JAIL_NAME}/root)" != "-" ]; then
|
if [ "$(zfs get -H -o value origin ${bastille_zfs_zpool}/${bastille_zfs_prefix}/jails/${JAIL_NAME}/root)" != "-" ]; then
|
||||||
JAIL_TYPE="clone"
|
JAIL_TYPE="clone"
|
||||||
|
else
|
||||||
|
JAIL_TYPE="thick"
|
||||||
fi
|
fi
|
||||||
elif [ "$(grep -c "^linprocfs" "${bastille_jailsdir}/${JAIL_NAME}/fstab" 2> /dev/null)" -gt 0 ]; then
|
|
||||||
JAIL_TYPE="linux"
|
|
||||||
else
|
else
|
||||||
JAIL_TYPE="thick"
|
JAIL_TYPE="thick"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user