16 |
rootfs=`grep lxc.rootfs /var/lib/lxc/$name/config | cut -d= -f2` |
rootfs=`grep lxc.rootfs /var/lib/lxc/$name/config | cut -d= -f2` |
17 |
echo "$name rootfs $rootfs" |
echo "$name rootfs $rootfs" |
18 |
|
|
19 |
|
# cleanup init scripts which don't work in containers |
20 |
|
ls $rootfs/etc/rc?.d/*umountfs 2>/dev/null | xargs -i rm -v {} |
21 |
|
ls $rootfs/etc/rc?.d/*umountroot 2>/dev/null | xargs -i rm -v {} |
22 |
|
ls $rootfs/etc/rc?.d/*hwclock* 2>/dev/null | xargs -i rm -v {} |
23 |
|
|
24 |
lxc-info -n $name | grep RUNNING || lxc-start -d -n $name -o /tmp/${name}.log && echo "$name start" |
lxc-info -n $name | grep RUNNING || lxc-start -d -n $name -o /tmp/${name}.log && echo "$name start" |
25 |
|
|
26 |
while true; do |
while true; do |