%s/@LOCALSTATEDIR@/\/var/g

This commit is contained in:
Fabio Rehm 2013-08-30 18:08:51 -03:00
parent a1c7a4ece0
commit 739e602794

View file

@ -92,7 +92,7 @@ EOF
fi
# generate new SSH keys
if [ -x $rootfs@LOCALSTATEDIR@/lib/dpkg/info/openssh-server.postinst ]; then
if [ -x $rootfs/var/lib/dpkg/info/openssh-server.postinst ]; then
cat > $rootfs/usr/sbin/policy-rc.d << EOF
#!/bin/sh
exit 101
@ -101,7 +101,7 @@ EOF
rm -f $rootfs/etc/ssh/ssh_host_*key*
mv $rootfs/etc/init/ssh.conf $rootfs/etc/init/ssh.conf.disabled
DPKG_MAINTSCRIPT_PACKAGE=openssh DPKG_MAINTSCRIPT_NAME=postinst chroot $rootfs @LOCALSTATEDIR@/lib/dpkg/info/openssh-server.postinst configure
DPKG_MAINTSCRIPT_PACKAGE=openssh DPKG_MAINTSCRIPT_NAME=postinst chroot $rootfs /var/lib/dpkg/info/openssh-server.postinst configure
mv $rootfs/etc/init/ssh.conf.disabled $rootfs/etc/init/ssh.conf
rm -f $rootfs/usr/sbin/policy-rc.d
@ -313,8 +313,8 @@ install_ubuntu()
rootfs=$1
release=$2
flushcache=$3
cache="@LOCALSTATEDIR@/cache/lxc/$release"
mkdir -p @LOCALSTATEDIR@/lock/subsys/
cache="/var/cache/lxc/$release"
mkdir -p /var/lock/subsys/
(
flock -x 200
@ -348,7 +348,7 @@ install_ubuntu()
return 0
) 200>@LOCALSTATEDIR@/lock/subsys/lxc-ubuntu
) 200>/var/lock/subsys/lxc-ubuntu
return $?
}