mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-07-27 12:37:35 +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
|
||||
pkglibexec_SCRIPTS = lxc-containers lxc-net lxc-devsetup
|
||||
EXTRA_DIST = lxc-containers.in lxc-net.in
|
||||
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]
|
||||
Type=oneshot
|
||||
RemainAfterExit=yes
|
||||
ExecStartPre=@LIBEXECDIR@/lxc/lxc-devsetup
|
||||
ExecStartPre=@LIBEXECDIR@/lxc/lxc-apparmor-load
|
||||
ExecStart=@LIBEXECDIR@/lxc/lxc-containers start
|
||||
ExecStop=@LIBEXECDIR@/lxc/lxc-containers stop
|
||||
|
@ -29,7 +29,6 @@ test ! -r /lib/lsb/init-functions ||
|
||||
|
||||
start() {
|
||||
# Setup host /dev for autodev containers.
|
||||
@LIBEXECDIR@/lxc/lxc-devsetup
|
||||
log_daemon_msg "Starting LXC autoboot containers: "
|
||||
@LIBEXECDIR@/lxc/lxc-containers start
|
||||
}
|
||||
|
@ -45,9 +45,6 @@ pre-start script
|
||||
fi
|
||||
fi
|
||||
|
||||
# Setup host /dev for autodev containers.
|
||||
@LIBEXECDIR@/lxc/lxc-devsetup
|
||||
|
||||
[ "x$LXC_AUTO" = "xtrue" ] || exit 0
|
||||
|
||||
if [ -n "$BOOTGROUPS" ]
|
||||
|
@ -276,7 +276,6 @@ fi
|
||||
%{_libexecdir}/%{name}
|
||||
%attr(4111,root,root) %{_libexecdir}/%{name}/lxc-user-nic
|
||||
%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-containers
|
||||
%endif
|
||||
|
Loading…
Reference in New Issue
Block a user