diff options
author | Robert Schwebel <r.schwebel@pengutronix.de> | 2016-06-09 09:15:27 +0200 |
---|---|---|
committer | Robert Schwebel <r.schwebel@pengutronix.de> | 2016-06-10 14:32:28 +0200 |
commit | 6363815629a51cfc4b386fa53e2d94670bc968f0 (patch) | |
tree | 0002763d17e0230f9965d579899176412fcabfc4 /rules | |
parent | 4ca0c25096f3a3b6969d44f757500ede747406d6 (diff) | |
download | DistroKit-6363815629a51cfc4b386fa53e2d94670bc968f0.tar.gz DistroKit-6363815629a51cfc4b386fa53e2d94670bc968f0.tar.xz |
image: change partitioning, add data partition
We change the partitioning to have one root-A partition of 512 MB and a
data partition that fills up the rest of the boot medium.
The systemd-autoformat@.service formats the data partition if it isn't
already, and the 91-mkfs-ext4 rule automatically mounts it to /mnt/data.
Inspired-by: Michael Olbrich <m.olbrich@pengutronix.de>
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
Diffstat (limited to 'rules')
-rw-r--r-- | rules/datapartition.in | 5 | ||||
-rw-r--r-- | rules/datapartition.make | 40 |
2 files changed, 45 insertions, 0 deletions
diff --git a/rules/datapartition.in b/rules/datapartition.in new file mode 100644 index 0000000..4343e7c --- /dev/null +++ b/rules/datapartition.in @@ -0,0 +1,5 @@ +## SECTION=project_specific + +config DATAPARTITION + tristate + default y diff --git a/rules/datapartition.make b/rules/datapartition.make new file mode 100644 index 0000000..9cda1b1 --- /dev/null +++ b/rules/datapartition.make @@ -0,0 +1,40 @@ +# -*-makefile-*- +# +# Copyright (C) 2016 by Robert Schwebel <r.schwebel@pengutronix.de> +# +# See CREDITS for details about who has contributed to this project. +# +# For further information about the PTXdist project and license conditions +# see the README file. +# + +# +# We provide this package +# +PACKAGES-$(PTXCONF_DATAPARTITION) += datapartition + +DATAPARTITION_VERSION := 1 + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/datapartition.targetinstall: + @$(call targetinfo) + + @$(call install_init, datapartition) + @$(call install_fixup,datapartition,PRIORITY,optional) + @$(call install_fixup,datapartition,SECTION,base) + @$(call install_fixup,datapartition,AUTHOR,"Robert Schwebel <r.schwebel@pengutronix.de>") + @$(call install_fixup,datapartition,DESCRIPTION,missing) + + @$(call install_alternative, datapartition, 0, 0, 0644, \ + /lib/systemd/system/systemd-autoformat@.service) + @$(call install_alternative, datapartition, 0, 0, 0644, \ + /lib/udev/rules.d/91-mkfs-ext4.rules) + + @$(call install_finish,datapartition) + + @$(call touch) + +# vim: syntax=make |