#!/usr/bin/env bash
#
# Copyright (C) 2016 Josua Mayer
-#
+#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
printf "Done\n"
while [ "$#" -ge 3 ]; do
- ptgen_args="$ptgen_args -p $(($2 / 2 + 256)) -S 0x$1"
+ ptgen_args="$ptgen_args -t $1 -p $(($2 / 2 + 256))"
parts="$parts$3 "
shift; shift; shift
done
# create real partition table using fdisk
printf "Creating partition table: "
-set `ptgen -o "$OUTFILE" -h $head -s $sect -l 1024 $ptgen_args`
+set `ptgen -o "$OUTFILE" -h $head -s $sect -l 1024 -S 0x$SIGNATURE $ptgen_args`
printf "Done\n"
# install bootloader