Sha256: 6475fc263d4591477fb8f799e23e3e02071900e5ca22e8824f78173f79e14d9e

Contents?: true

Size: 863 Bytes

Versions: 57

Compression:

Stored size: 863 Bytes

Contents

#!/bin/sh
#
#  This script setups the ubuntu guests up properly.
#


prefix=$1

#
#  Source our common functions
#
if [ -e /usr/lib/xen-tools/common.sh ]; then
   . /usr/lib/xen-tools/common.sh
else
   . ./hooks/common.sh
fi

chroot ${prefix} /usr/sbin/update-rc.d -f hwclock.sh remove
chroot ${prefix} /usr/sbin/update-rc.d -f hwclockfirst.sh remove
chroot ${prefix} rm -f /etc/udev/rules.d/85-hwclock.rules
chroot ${prefix} ln -sf /bin/true /sbin/hwclock
chroot ${prefix} mknod /dev/xvda b 202 0
chroot ${prefix} mknod /dev/xvdb b 202 16
chroot ${prefix} mknod /dev/xvdc b 202 32
chroot ${prefix} mknod /dev/xvdd b 202 48

for i in 1 2 3 4 5 6 7 8 9; do 
      chroot ${prefix} mknod /dev/xvda$i b 202 $i
      chroot ${prefix} mknod /dev/xvdb$i b 202 $i
      chroot ${prefix} mknod /dev/xvdc$i b 202 $i
      chroot ${prefix} mknod /dev/xvdd$i b 202 $i
done 

Version data entries

57 entries across 57 versions & 1 rubygems

Version Path
le1t0-deprec-2.1.6.037 lib/deprec/templates/xentools/31-ubuntu-setup
le1t0-deprec-2.1.6.036 lib/deprec/templates/xentools/31-ubuntu-setup
le1t0-deprec-2.1.6.035 lib/deprec/templates/xentools/31-ubuntu-setup
le1t0-deprec-2.1.6.034 lib/deprec/templates/xentools/31-ubuntu-setup
le1t0-deprec-2.1.6.033 lib/deprec/templates/xentools/31-ubuntu-setup
le1t0-deprec-2.1.6.032 lib/deprec/templates/xentools/31-ubuntu-setup
le1t0-deprec-2.1.6.031 lib/deprec/templates/xentools/31-ubuntu-setup
le1t0-deprec-2.1.6.030 lib/deprec/templates/xentools/31-ubuntu-setup
le1t0-deprec-2.1.6.029 lib/deprec/templates/xentools/31-ubuntu-setup
le1t0-deprec-2.1.6.028 lib/deprec/templates/xentools/31-ubuntu-setup
le1t0-deprec-2.1.6.027 lib/deprec/templates/xentools/31-ubuntu-setup
le1t0-deprec-2.1.6.026 lib/deprec/templates/xentools/31-ubuntu-setup
le1t0-deprec-2.1.6.025 lib/deprec/templates/xentools/31-ubuntu-setup
le1t0-deprec-2.1.6.024 lib/deprec/templates/xentools/31-ubuntu-setup
le1t0-deprec-2.1.6.023 lib/deprec/templates/xentools/31-ubuntu-setup
le1t0-deprec-2.1.6.022 lib/deprec/templates/xentools/31-ubuntu-setup
le1t0-deprec-2.1.6.021 lib/deprec/templates/xentools/31-ubuntu-setup
le1t0-deprec-2.1.6.020 lib/deprec/templates/xentools/31-ubuntu-setup
le1t0-deprec-2.1.6.019 lib/deprec/templates/xentools/31-ubuntu-setup
le1t0-deprec-2.1.6.018 lib/deprec/templates/xentools/31-ubuntu-setup