aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rwxr-xr-xinclude/partition.sh21
1 files changed, 14 insertions, 7 deletions
diff --git a/include/partition.sh b/include/partition.sh
index d487b02..eed6db9 100755
--- a/include/partition.sh
+++ b/include/partition.sh
@@ -16,14 +16,21 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
+# On most installations it should be enough to change what is marked as
+# 'FIXME'.
+
set -ue
. /lib/fripost-partman/base.sh
-#device=/dev/sda
-device='/dev/sda /dev/sdb' # space-separated form mutiple disks (raid)
-raidLevel=raid1 # raid level (leave empty for no raid)
-raidNumActiveDevices=2 # number of active devices in the array
+# Configuration for a single disk
+device=/dev/sda
+raidLevel=
+
+# Configuration for a RAID array
+#device='/dev/sda /dev/sdb' # FIXME
+#raidLevel=raid1 # raid level FIXME
+#raidNumActiveDevices=2 # number of active devices in the array FIXME
n=0
@@ -147,9 +154,9 @@ vg=$(hostname)
pvcreate -ff -y $part_system
vgcreate $vg $part_system
-lvcreate -L 5G -n root $vg
-lvcreate -L 1G -n swap $vg
-lvcreate -l 100%FREE -n home $vg
+lvcreate -L 5G -n root $vg # FIXME
+lvcreate -L 1G -n swap $vg # FIXME
+lvcreate -l 100%FREE -n home $vg # FIXME
vgchange -ay $vg