#!/bin/sh # # This script is responsible for setting up /etc/fstab upon the # new instance. # # Axel # -- # prefix=$1 # # Source our common functions # if [ -e /usr/share/xen-tools/common.sh ]; then . /usr/share/xen-tools/common.sh else . ./hooks/common.sh fi # # Log our start # logMessage Script $0 starting # # Now let's fixup the fstab # cat <> ${prefix}/etc/fstab tmpfs /tmp tmpfs rw,nosuid,nodev 0 0 tmpfs /var/run tmpfs rw,nosuid,nodev,noexec,mode=1755 0 0 tmpfs /var/lock tmpfs rw,nosuid,nodev,noexec 0 0 END_OF_TMPFS_FSTAB # # Log our finish # logMessage Script $0 finished