public inbox for ipfire-scm@lists.ipfire.org
 help / color / mirror / Atom feed
* [git.ipfire.org] IPFire 2.x development tree branch, next, updated. 4f26ff7f66a1973ed0cea142d9599073e22bddcf
@ 2014-01-29 23:22 git
  0 siblings, 0 replies; only message in thread
From: git @ 2014-01-29 23:22 UTC (permalink / raw)
  To: ipfire-scm

[-- Attachment #1: Type: text/plain, Size: 2360 bytes --]

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "IPFire 2.x development tree".

The branch, next has been updated
       via  4f26ff7f66a1973ed0cea142d9599073e22bddcf (commit)
      from  11a47ed33b0cd16036e490d0cf01cc5ec76e3b83 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 4f26ff7f66a1973ed0cea142d9599073e22bddcf
Author: Arne Fitzenreiter <arne_f(a)ipfire.org>
Date:   Thu Jan 30 00:20:26 2014 +0100

    installer: add gpt support.

-----------------------------------------------------------------------

Summary of changes:
 config/rootfiles/installer/parted | 1 +
 src/install+setup/install/main.c  | 9 ++++++++-
 2 files changed, 9 insertions(+), 1 deletion(-)
 create mode 120000 config/rootfiles/installer/parted

Difference in files:
diff --git a/config/rootfiles/installer/parted b/config/rootfiles/installer/parted
new file mode 120000
index 0000000..dc69674
--- /dev/null
+++ b/config/rootfiles/installer/parted
@@ -0,0 +1 @@
+../packages/parted
\ No newline at end of file
diff --git a/src/install+setup/install/main.c b/src/install+setup/install/main.c
index 52b5c8c..0a86bb0 100644
--- a/src/install+setup/install/main.c
+++ b/src/install+setup/install/main.c
@@ -372,7 +372,14 @@ int main(int argc, char *argv[])
 
 	fclose(handle);
 
-	snprintf(commandstring, STRING_SIZE, "/sbin/sfdisk -L -uM %s < /tmp/partitiontable", hdparams.devnode_disk);
+	if (disk < 2097150) {
+		// <2TB use sfdisk and normal mbr
+		snprintf(commandstring, STRING_SIZE, "/sbin/sfdisk -L -uM %s < /tmp/partitiontable", hdparams.devnode_disk);
+	} else {
+		// >2TB use parted with gpt
+		snprintf(commandstring, STRING_SIZE, "/usr/sbin/parted -s %s mklabel gpt mkpart boot ext2 1M 64M mkpart swap linux-swap 64M 1000M mkpart root ext4 1000M 5000M mkpart var ext4 5000M 100%% disk_set pmbr_boot on", hdparams.devnode_disk);
+	}
+
 	if (runcommandwithstatus(commandstring, ctr[TR_PARTITIONING_DISK]))
 	{
 		errorbox(ctr[TR_UNABLE_TO_PARTITION]);


hooks/post-receive
--
IPFire 2.x development tree

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-01-29 23:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-01-29 23:22 [git.ipfire.org] IPFire 2.x development tree branch, next, updated. 4f26ff7f66a1973ed0cea142d9599073e22bddcf git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox