mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-07-27 15:49:25 +00:00
Merge pull request #1043 from stgraber/master
Drop lxc-devsetup as unneeded by current autodev
This commit is contained in:
commit
b5cacc178e
@ -1,2 +1,2 @@
|
|||||||
EXTRA_DIST = lxc-containers.in lxc-net.in lxc-devsetup
|
EXTRA_DIST = lxc-containers.in lxc-net.in
|
||||||
pkglibexec_SCRIPTS = lxc-containers lxc-net lxc-devsetup
|
pkglibexec_SCRIPTS = lxc-containers lxc-net
|
||||||
|
@ -1,25 +0,0 @@
|
|||||||
#!/bin/sh -
|
|
||||||
|
|
||||||
# lxc.devsetup - Setup host /dev for container /dev subdirectories.
|
|
||||||
|
|
||||||
if [ ! -d /dev/.lxc ]
|
|
||||||
then
|
|
||||||
echo "Creating /dev/.lxc"
|
|
||||||
mkdir /dev/.lxc
|
|
||||||
chmod 755 /dev/.lxc
|
|
||||||
fi
|
|
||||||
|
|
||||||
if grep -q "/dev devtmpfs " /proc/self/mounts
|
|
||||||
then
|
|
||||||
echo "/dev is devtmpfs"
|
|
||||||
else
|
|
||||||
echo "/dev is not devtmpfs - mounting tmpfs on .lxc"
|
|
||||||
mount -t tmpfs tmpfs /dev/.lxc
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ ! -d /dev/.lxc/user ]
|
|
||||||
then
|
|
||||||
echo "Creating /dev/.lxc/user"
|
|
||||||
mkdir /dev/.lxc/user
|
|
||||||
chmod 1777 /dev/.lxc/user
|
|
||||||
fi
|
|
@ -6,7 +6,6 @@ Wants=lxc-net.service
|
|||||||
[Service]
|
[Service]
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
RemainAfterExit=yes
|
RemainAfterExit=yes
|
||||||
ExecStartPre=@LIBEXECDIR@/lxc/lxc-devsetup
|
|
||||||
ExecStartPre=@LIBEXECDIR@/lxc/lxc-apparmor-load
|
ExecStartPre=@LIBEXECDIR@/lxc/lxc-apparmor-load
|
||||||
ExecStart=@LIBEXECDIR@/lxc/lxc-containers start
|
ExecStart=@LIBEXECDIR@/lxc/lxc-containers start
|
||||||
ExecStop=@LIBEXECDIR@/lxc/lxc-containers stop
|
ExecStop=@LIBEXECDIR@/lxc/lxc-containers stop
|
||||||
|
@ -29,7 +29,6 @@ test ! -r /lib/lsb/init-functions ||
|
|||||||
|
|
||||||
start() {
|
start() {
|
||||||
# Setup host /dev for autodev containers.
|
# Setup host /dev for autodev containers.
|
||||||
@LIBEXECDIR@/lxc/lxc-devsetup
|
|
||||||
log_daemon_msg "Starting LXC autoboot containers: "
|
log_daemon_msg "Starting LXC autoboot containers: "
|
||||||
@LIBEXECDIR@/lxc/lxc-containers start
|
@LIBEXECDIR@/lxc/lxc-containers start
|
||||||
}
|
}
|
||||||
|
@ -45,9 +45,6 @@ pre-start script
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Setup host /dev for autodev containers.
|
|
||||||
@LIBEXECDIR@/lxc/lxc-devsetup
|
|
||||||
|
|
||||||
[ "x$LXC_AUTO" = "xtrue" ] || exit 0
|
[ "x$LXC_AUTO" = "xtrue" ] || exit 0
|
||||||
|
|
||||||
if [ -n "$BOOTGROUPS" ]
|
if [ -n "$BOOTGROUPS" ]
|
||||||
|
@ -276,7 +276,6 @@ fi
|
|||||||
%{_libexecdir}/%{name}
|
%{_libexecdir}/%{name}
|
||||||
%attr(4111,root,root) %{_libexecdir}/%{name}/lxc-user-nic
|
%attr(4111,root,root) %{_libexecdir}/%{name}/lxc-user-nic
|
||||||
%if %{with_systemd}
|
%if %{with_systemd}
|
||||||
%attr(555,root,root) %{_libexecdir}/%{name}/lxc-devsetup
|
|
||||||
%attr(555,root,root) %{_libexecdir}/%{name}/lxc-net
|
%attr(555,root,root) %{_libexecdir}/%{name}/lxc-net
|
||||||
%attr(555,root,root) %{_libexecdir}/%{name}/lxc-containers
|
%attr(555,root,root) %{_libexecdir}/%{name}/lxc-containers
|
||||||
%endif
|
%endif
|
||||||
|
Loading…
Reference in New Issue
Block a user