removed stray spaces in pkgconfig files
[fai-configs.git] / hooks / partition.XENU
CommitLineData
668c8397
LMM
1#!/bin/bash
2# Lisa Maginnis - Sr SysAdmin
3# Taken from: http://wiki.fai-project.org/wiki/Using_FAI_to_set_up_XEN_domains
4
5[ -f $LOGDIR/our.skip.partition ] && exit 0
6
7for our_cl in $classes; do
8 [ $our_cl = "XENU" ] && continue
9 [ -f $FAI/hooks/partition.$our_cl ] && exit 0
10done
11
12mkfs.ext4 -j /dev/xvda2 > /dev/null
13mkswap /dev/xvda1 > /dev/null
14
15cat > /tmp/fai/fstab <<EOF
16/dev/xvda2 / ext4 defaults 0 0
17/dev/xvda1 none swap sw 0 0
18EOF
19
20echo "#!" > $diskvar
21touch $LOGDIR/skip.partition