[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[PATCH] Add specific recipes for GPT partitioning on sparc/sparc64



The following patch will add d-i/partman-auto recipes for sparc/sparc64
on sun4u and sun4v based systems with GPT support. 

They are based on the default recipes (below ./recipes) and the recipes
for sparc (below ./recipes-sparc).

In contrast to the default of a 1 MB sized BIOS_GRUB partition after
1 MB of empty space from the beginning of the device these use a 10 MB
sized partition. Eric mentions a slightly smaller size on [1] though I
actually don't know what minimum space is needed there.

[1]: https://github.com/esnowberg/grub2-sparc/wiki

An alternative would be to just include the:
```
10 10 10 free
	$iflabel{ gpt }
	$reusemethod{ }
	method{ biosgrub } .
```
...part on top of the recipes for sparc - if the assumption is correct
that "$iflabel{ gpt }" line will only make this part effective on GPT
partitioned disks.

The patch to d-i/grub-installer follows.

Cheers,
Frank

---
 debian/changelog                   |  7 ++++++
 recipes-sparc-sun4u_gpt            |  1 +
 recipes-sparc-sun4v_gpt            |  1 +
 recipes-sparc64-sun4u_gpt/_numbers |  3 +++
 recipes-sparc64-sun4u_gpt/atomic   | 26 +++++++++++++++++++
 recipes-sparc64-sun4u_gpt/home     | 35 ++++++++++++++++++++++++++
 recipes-sparc64-sun4u_gpt/multi    | 51 ++++++++++++++++++++++++++++++++++++++
 recipes-sparc64-sun4v_gpt          |  1 +
 8 files changed, 125 insertions(+)
 create mode 120000 recipes-sparc-sun4u_gpt
 create mode 120000 recipes-sparc-sun4v_gpt
 create mode 100644 recipes-sparc64-sun4u_gpt/_numbers
 create mode 100644 recipes-sparc64-sun4u_gpt/atomic
 create mode 100644 recipes-sparc64-sun4u_gpt/home
 create mode 100644 recipes-sparc64-sun4u_gpt/multi
 create mode 120000 recipes-sparc64-sun4v_gpt

diff --git a/debian/changelog b/debian/changelog
index c5d2208..0ea969f 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+partman-auto (145) UNRELEASED; urgency=medium
+
+  [ Frank Scheiner ]
+  * Add specific recipes for GPT partitioning on sparc/sparc64.
+
+ -- Frank Scheiner <frank.scheiner@web.de>  Mon, 05 Mar 2018 19:39:43 +0100
+
 partman-auto (144) unstable; urgency=medium
 
   [ Updated translations ]
diff --git a/recipes-sparc-sun4u_gpt b/recipes-sparc-sun4u_gpt
new file mode 120000
index 0000000..ed2fff1
--- /dev/null
+++ b/recipes-sparc-sun4u_gpt
@@ -0,0 +1 @@
+recipes-sparc64-sun4v_gpt
\ No newline at end of file
diff --git a/recipes-sparc-sun4v_gpt b/recipes-sparc-sun4v_gpt
new file mode 120000
index 0000000..ed2fff1
--- /dev/null
+++ b/recipes-sparc-sun4v_gpt
@@ -0,0 +1 @@
+recipes-sparc64-sun4v_gpt
\ No newline at end of file
diff --git a/recipes-sparc64-sun4u_gpt/_numbers b/recipes-sparc64-sun4u_gpt/_numbers
new file mode 100644
index 0000000..341b03f
--- /dev/null
+++ b/recipes-sparc64-sun4u_gpt/_numbers
@@ -0,0 +1,3 @@
+30 atomic
+50 home
+80 multi
diff --git a/recipes-sparc64-sun4u_gpt/atomic b/recipes-sparc64-sun4u_gpt/atomic
new file mode 100644
index 0000000..84563a4
--- /dev/null
+++ b/recipes-sparc64-sun4u_gpt/atomic
@@ -0,0 +1,26 @@
+partman-auto/text/atomic_scheme ::
+
+10 10 10 free
+	$iflabel{ gpt }
+	$reusemethod{ }
+	method{ biosgrub } .
+
+50 500 100 ext2
+	method{ format }
+	format{ }
+	use_filesystem{ }
+	filesystem{ ext2 }
+	mountpoint{ /boot } .
+
+800 10000 -1 $default_filesystem
+	$lvmok{ }
+	method{ format }
+	format{ }
+	use_filesystem{ }
+	$default_filesystem{ }
+	mountpoint{ / } .
+
+100% 512 300% linux-swap
+	$lvmok{ }
+	method{ swap }
+	format{ } .
diff --git a/recipes-sparc64-sun4u_gpt/home b/recipes-sparc64-sun4u_gpt/home
new file mode 100644
index 0000000..7cca0b2
--- /dev/null
+++ b/recipes-sparc64-sun4u_gpt/home
@@ -0,0 +1,35 @@
+partman-auto/text/home_scheme ::
+
+10 10 10 free
+	$iflabel{ gpt }
+	$reusemethod{ }
+	method{ biosgrub } .
+
+50 500 100 ext2
+	method{ format }
+	format{ }
+	use_filesystem{ }
+	filesystem{ ext2 }
+	mountpoint{ /boot } .
+
+1500 6000 30000 $default_filesystem
+	$lvmok{ }
+	method{ format }
+	format{ }
+	use_filesystem{ }
+	$default_filesystem{ }
+	mountpoint{ / } .
+
+100% 512 300% linux-swap
+	$lvmok{ }
+	method{ swap }
+	format{ } .
+
+1000 10000 -1 $default_filesystem
+	$lvmok{ }
+	method{ format }
+	format{ }
+	use_filesystem{ }
+	$default_filesystem{ }
+	mountpoint{ /home } .
+
diff --git a/recipes-sparc64-sun4u_gpt/multi b/recipes-sparc64-sun4u_gpt/multi
new file mode 100644
index 0000000..43cb060
--- /dev/null
+++ b/recipes-sparc64-sun4u_gpt/multi
@@ -0,0 +1,51 @@
+partman-auto/text/multi_scheme ::
+
+10 10 10 free
+	$iflabel{ gpt }
+	$reusemethod{ }
+	method{ biosgrub } .
+
+30 500 100 ext2
+	method{ format }
+	format{ }
+	use_filesystem{ }
+	filesystem{ ext2 }
+	mountpoint{ /boot } .
+
+2000 3500 25000 $default_filesystem
+	$lvmok{ }
+	method{ format }
+	format{ }
+	use_filesystem{ }
+	$default_filesystem{ }
+	mountpoint{ / } .
+
+1000 1500 10000 $default_filesystem
+	$lvmok{ }
+	method{ format }
+	format{ }
+	use_filesystem{ }
+	$default_filesystem{ }
+	mountpoint{ /var } .
+
+100% 512 300% linux-swap
+	$lvmok{ }
+	method{ swap }
+	format{ } .
+
+256 400 2000 $default_filesystem
+	$lvmok{ }
+	method{ format }
+	format{ }
+	use_filesystem{ }
+	$default_filesystem{ }
+	mountpoint{ /tmp } .
+
+4000 10000 -1 $default_filesystem
+	$lvmok{ }
+	method{ format }
+	format{ }
+	use_filesystem{ }
+	$default_filesystem{ }
+	mountpoint{ /home } .
+
diff --git a/recipes-sparc64-sun4v_gpt b/recipes-sparc64-sun4v_gpt
new file mode 120000
index 0000000..984e291
--- /dev/null
+++ b/recipes-sparc64-sun4v_gpt
@@ -0,0 +1 @@
+recipes-sparc64-sun4u_gpt
\ No newline at end of file
-- 
1.9.1


Reply to: