summaryrefslogtreecommitdiff
path: root/packages/tasks/task-pivotboot.bb
diff options
context:
space:
mode:
authorPhilipp Zabel <philipp.zabel@gmail.com>2006-07-23 14:19:49 +0000
committerPhilipp Zabel <philipp.zabel@gmail.com>2006-07-23 14:19:49 +0000
commit7ade510f39625ad0a6744db95160f661ab4bbd1e (patch)
tree5803162ed78c25ebeb126c7a017ba936c76d1153 /packages/tasks/task-pivotboot.bb
parent68b5df2b8115eee9576ea414d2663a9000f54ee8 (diff)
parent8a7dd61b6490353b3a284c7100e0adb9840d6da4 (diff)
merge of 206b9c34335d6624ecb83fa31c72e4d6fbe3b541
and da3bdc9f7b7872511bed7da95bbe562ffd88f6fe
Diffstat (limited to 'packages/tasks/task-pivotboot.bb')
-rw-r--r--packages/tasks/task-pivotboot.bb33
1 files changed, 33 insertions, 0 deletions
diff --git a/packages/tasks/task-pivotboot.bb b/packages/tasks/task-pivotboot.bb
new file mode 100644
index 0000000000..091f70f459
--- /dev/null
+++ b/packages/tasks/task-pivotboot.bb
@@ -0,0 +1,33 @@
+DESCRIPTION = "Basic packages required for a pivot root image"
+MAINTAINER = "Jonathan McDowell <noodles@earth.li>"
+PR = "r0"
+
+# The PIVOTBOOT_EXTRA_ variables are often manipulated by the
+# MACHINE .conf files, so adjust PACKAGE_ARCH accordingly.
+PACKAGE_ARCH = "${MACHINE_ARCH}"
+
+ALLOW_EMPTY = 1
+PACKAGES = "${PN}"
+
+MODUTILS ?= "24 26"
+
+def bootstrap_modutils_rdepends(d):
+ import bb
+ m = bb.data.getVar('MODUTILS', d, 1)
+ r = []
+ if '24' in m:
+ r.append('modutils-depmod')
+ if '26' in m:
+ r.append('module-init-tools-depmod')
+ return ' '.join(r)
+
+HOTPLUG ?= "linux-hotplug"
+
+RDEPENDS = 'base-files base-passwd busybox \
+ netbase modutils-initscripts \
+ ${HOTPLUG} \
+ ${PIVOTBOOT_EXTRA_RDEPENDS} \
+ ${@bootstrap_modutils_rdepends(d)}'
+
+RRECOMMENDS = '${PIVOTBOOT_EXTRA_RRECOMMENDS}'
+LICENSE = MIT