mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-15 10:12:24 +00:00
Enforce selinux to disabled
From: Daniel Lezcano <dlezcano@fr.ibm.com> Enforce selinux to disabled Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
This commit is contained in:
parent
35f549fe1b
commit
7afc269d0e
@ -18,6 +18,13 @@ CACHE="@LOCALSTATEDIR@/cache/lxc/debian"
|
|||||||
# debian custom configuration files
|
# debian custom configuration files
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
|
# custom selinux
|
||||||
|
|
||||||
|
write_debian_selinux() {
|
||||||
|
mkdir $ROOTFS/selinux
|
||||||
|
echo 0 > $ROOTFS/selinux/enforce
|
||||||
|
}
|
||||||
|
|
||||||
# custom fstab
|
# custom fstab
|
||||||
|
|
||||||
write_debian_fstab() {
|
write_debian_fstab() {
|
||||||
@ -219,7 +226,6 @@ create() {
|
|||||||
) 200>/var/lock/subsys/lxc
|
) 200>/var/lock/subsys/lxc
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
write_lxc_mounts
|
write_lxc_mounts
|
||||||
|
|
||||||
write_lxc_configuration
|
write_lxc_configuration
|
||||||
@ -234,6 +240,8 @@ write_debian_network
|
|||||||
|
|
||||||
write_debian_sshd_config
|
write_debian_sshd_config
|
||||||
|
|
||||||
|
write_debian_selinux
|
||||||
|
|
||||||
@BINDIR@/lxc-create -n $NAME -f $CONFFILE
|
@BINDIR@/lxc-create -n $NAME -f $CONFFILE
|
||||||
RES=$?
|
RES=$?
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user