Quoting Tamas Papp ([email protected]): > hi, > > root@v301:/tank/lxc/lists# cat config > # Template used to create this container: > /usr/share/lxc/templates/lxc-ubuntu > # Parameters passed to the template: -r trusty > # For additional config options, please look at lxc.conf(5) > > # lists configuration > lxc.include = /usr/share/lxc/config/ubuntu.common.conf > > # Container specific configuration > lxc.rootfs = /tank/lxc/lists/rootfs > lxc.mount = /tank/lxc/lists/fstab > lxc.utsname = lists > lxc.arch = amd64 > > # Network configuration > lxc.network.type = veth > lxc.network.hwaddr = 00:16:3e:d4:bb:5e > lxc.network.flags = up > lxc.network.link = br-eth0 > > #lxc.aa_profile = unconfined > > # loop > #lxc.cgroup.devices.allow = b 7:* rwm > #lxc.cgroup.devices.allow = c 10:237 rwm > > lxc.start.auto = 1 > > lxc.hook.pre-start = /tank/lxc/lists/pre-start.sh > > > > root@v301:/tank/lxc/lists# cat pre-start.sh > #!/bin/sh > echo "arguments: $*" > /tmp/test > echo "environment:" >> /tmp/test > env | grep LXC >> /tmp/test
I assume pre-start.sh is executable? Nothing shows up in /tmp/test? If you switch to | tee -a /tmp/test so that output shows up on stdout, does the output then show up in the debug list. _______________________________________________ lxc-users mailing list [email protected] http://lists.linuxcontainers.org/listinfo/lxc-users
