Signed-off-by: Marco Felsch <[email protected]>
---
rules/util-linux-ng.in | 10 ++++++++++
rules/util-linux-ng.make | 5 ++++-
2 files changed, 14 insertions(+), 1 deletion(-)
diff --git a/rules/util-linux-ng.in b/rules/util-linux-ng.in
index e34d59a0d..df493d529 100644
--- a/rules/util-linux-ng.in
+++ b/rules/util-linux-ng.in
@@ -525,4 +525,14 @@ config UTIL_LINUX_NG_SWITCH_ROOT
comment "BusyBox' switch_root is selected!"
depends on BUSYBOX_SWITCH_ROOT
+config UTIL_LINUX_NG_PIVOT_ROOT
+ bool
+ depends on !BUSYBOX_PIVOT_ROOT
+ prompt "pivot_root"
+ help
+ change the root filesystem.
+
+comment "BusyBox' pivot_root is selected!"
+ depends on BUSYBOX_PIVOT_ROOT
+
endif
diff --git a/rules/util-linux-ng.make b/rules/util-linux-ng.make
index 25759f5e2..dd3eb0e01 100644
--- a/rules/util-linux-ng.make
+++ b/rules/util-linux-ng.make
@@ -98,7 +98,7 @@ UTIL_LINUX_NG_CONF_OPT := \
--disable-cal \
--disable-logger \
--$(call ptx/endis, PTXCONF_UTIL_LINUX_NG_SWITCH_ROOT)-switch_root \
- --disable-pivot_root \
+ --$(call ptx/endis, PTXCONF_UTIL_LINUX_NG_PIVOT_ROOT)-pivot_root \
--$(call ptx/endis, PTXCONF_UTIL_LINUX_NG_LSMEM)-lsmem \
--$(call ptx/endis, PTXCONF_UTIL_LINUX_NG_CHMEM)-chmem \
--$(call ptx/endis, PTXCONF_UTIL_LINUX_NG_IPCRM)-ipcrm \
@@ -342,6 +342,9 @@ endif
ifdef PTXCONF_UTIL_LINUX_NG_SWITCH_ROOT
@$(call install_copy, util-linux-ng, 0, 0, 0755, -,
/usr/sbin/switch_root)
endif
+ifdef PTXCONF_UTIL_LINUX_NG_PIVOT_ROOT
+ @$(call install_copy, util-linux-ng, 0, 0, 0755, -,
/usr/sbin/pivot_root)
+endif
@$(call install_finish, util-linux-ng)
--
2.30.2
_______________________________________________
ptxdist mailing list
[email protected]
To unsubscribe, send a mail with subject "unsubscribe" to
[email protected]