update for improved vzprep.sh script

This commit is contained in:
ahrenholz 2009-10-30 22:31:20 +00:00
parent e43ad26b78
commit 9af4103a02

View file

@ -97,18 +97,12 @@ The `core-root` filesystem is shared, but some directories unique to each node,
{{{ {{{
# ln -s /root/usr/local/etc /vz/private/core-root/usr/local/etc # ln -s /root/usr/local/etc /vz/private/core-root/usr/local/etc
}}} }}}
# Add the new per-node directory to the `vzprep.sh` script (which is executed by CORE upon node creation) # Add the new per-node directory to the `vzprep.sh` script (which is executed by CORE upon node creation), located in `/etc/core/vzprep.sh` or `cored/linux/scripts/vzprep.sh` if installing from source.
{{{ {{{
... ...
# create a new, empty temporary area # edit the below line to include your own per-node directory
mkdir -p /tmp/n$1 DIRS="/var/run/quagga /var/run/dbus /var/log /usr/local/etc /usr/local/var/log \
mkdir -p /tmp/n$1/var/run/quagga /usr/local/var/run /etc/avahi/services /etc/avahi/etc"
mkdir -p /tmp/n$1/var/log
mkdir -p /tmp/n$1/usr/local/etc # <== added this line
}}}
# Now you need to add the new directory to existing nodes, or destroy them and allow CORE to recreate them.
{{{
for i in 0 1 2 3 4 5 6 7 8 9; do mkdir -p /tmp/n$i/usr/local/etc; done
}}} }}}
= How to make the core-root RPM = = How to make the core-root RPM =