From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from ptx.hi.pengutronix.de ([2001:6f8:1178:2:5054:ff:fec0:8e10] ident=Debian-exim) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1X0UZM-0003y7-DK for ptxdist@pengutronix.de; Fri, 27 Jun 2014 13:43:52 +0200 Received: from mol by ptx.hi.pengutronix.de with local (Exim 4.80) (envelope-from ) id 1X0UZM-0004XJ-Bj for ptxdist@pengutronix.de; Fri, 27 Jun 2014 13:43:52 +0200 Date: Fri, 27 Jun 2014 13:43:52 +0200 From: Michael Olbrich Message-ID: <20140627114352.GD12903@pengutronix.de> References: <1403748424-6987-1-git-send-email-jon@ringle.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1403748424-6987-1-git-send-email-jon@ringle.org> Subject: Re: [ptxdist] [PATCH] util-linux-ng: allow losetup to be optionally installed Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de On Wed, Jun 25, 2014 at 10:07:04PM -0400, jon@ringle.org wrote: > From: Jon Ringle > Thanks, applied. Michael > Signed-off-by: Jon Ringle > --- > 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 249bc37..a98074e 100644 > --- a/rules/util-linux-ng.in > +++ b/rules/util-linux-ng.in > @@ -129,6 +129,16 @@ config UTIL_LINUX_NG_SWAPON > comment "BusyBox' swapon is selected!" > depends on BUSYBOX_SWAPONOFF > > +config UTIL_LINUX_NG_LOSETUP > + bool > + prompt "losetup" > + depends on !BUSYBOX_LOSETUP || ALLYES > + help > + losetup is used to associate or detach a loop device with a regular file or block device, and to query the status of a loop device. > + > +comment "BusyBox' losetup is selected!" > + depends on BUSYBOX_LOSETUP > + > config UTIL_LINUX_NG_MOUNT > bool > prompt "mount" > diff --git a/rules/util-linux-ng.make b/rules/util-linux-ng.make > index ced9e98..c47a933 100644 > --- a/rules/util-linux-ng.make > +++ b/rules/util-linux-ng.make > @@ -59,7 +59,7 @@ UTIL_LINUX_NG_CONF_OPT := \ > --$(call ptx/endis, PTXCONF_UTIL_LINUX_NG_LIBMOUNT)-libmount \ > --disable-deprecated-mount \ > --$(call ptx/endis, PTXCONF_UTIL_LINUX_NG_MOUNT)-mount \ > - --disable-losetup \ > + --$(call ptx/endis, PTXCONF_UTIL_LINUX_NG_LOSETUP)-losetup \ > --disable-cytune \ > --$(call ptx/endis, PTXCONF_UTIL_LINUX_NG_FSCK)-fsck \ > --$(call ptx/endis, PTXCONF_UTIL_LINUX_NG_PARTX_TOOLS)-partx \ > @@ -167,6 +167,9 @@ ifdef PTXCONF_UTIL_LINUX_NG_SWAPON > @$(call install_copy, util-linux-ng, 0, 0, 0755, -, /sbin/swapon) > @$(call install_link, util-linux-ng, swapon, /sbin/swapoff) > endif > +ifdef PTXCONF_UTIL_LINUX_NG_LOSETUP > + @$(call install_copy, util-linux-ng, 0, 0, 0755, -, /sbin/losetup) > +endif > ifdef PTXCONF_UTIL_LINUX_NG_MOUNT > @$(call install_copy, util-linux-ng, 0, 0, 0755, -, /bin/mount) > endif > -- > 1.8.5.4 > > > -- > ptxdist mailing list > ptxdist@pengutronix.de > -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | -- ptxdist mailing list ptxdist@pengutronix.de