forked from ungleich-public/cdist
Added jail_${name}_flags variable
To make future work, such as resource limiting (rctl(8)) easier, added "-n ${name}" to jail_flags for each jail.
This commit is contained in:
parent
d39821782d
commit
131889b454
1 changed files with 4 additions and 3 deletions
|
@ -198,8 +198,8 @@ cat <<EOF
|
||||||
cp -r ${jaildir}/base/usr/home/* "${jaildir}/rw/${name}/home/"
|
cp -r ${jaildir}/base/usr/home/* "${jaildir}/rw/${name}/home/"
|
||||||
fi
|
fi
|
||||||
mkdir "${jaildir}/rw/${name}/root"
|
mkdir "${jaildir}/rw/${name}/root"
|
||||||
if [ -n "\$(ls ${jaildir}/base/root)" ]; then
|
if [ -n "\$(ls -A ${jaildir}/base/root)" ]; then
|
||||||
cp -r ${jaildir}/base/root/* "${jaildir}/rw/${name}/root/"
|
cp -r ${jaildir}/base/root/ "${jaildir}/rw/${name}/root/"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
|
@ -234,7 +234,8 @@ jail_${name}_hostname="${hostname}"
|
||||||
jail_${name}_ip="${ip}"
|
jail_${name}_ip="${ip}"
|
||||||
jail_${name}_devfs_enable="${devfsenable}"
|
jail_${name}_devfs_enable="${devfsenable}"
|
||||||
jail_${name}_mount_enable="YES"
|
jail_${name}_mount_enable="YES"
|
||||||
jail_${name}_fstab="/etc/fstab.$name"
|
jail_${name}_fstab="/etc/fstab.${name}"
|
||||||
|
jail_${name}_flags="-n ${name} \\\${jail_flags}"
|
||||||
END
|
END
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue