From patchwork Tue Oct 25 03:44:43 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Mendoza-Jonas X-Patchwork-Id: 686303 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [103.22.144.68]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3t2zZF3ZVfz9t1L for ; Tue, 25 Oct 2016 14:45:25 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=mendozajonas.com header.i=@mendozajonas.com header.b=LiO+eyz4; dkim-atps=neutral Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 3t2zZF2jxBzDvk9 for ; Tue, 25 Oct 2016 14:45:25 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=mendozajonas.com header.i=@mendozajonas.com header.b=LiO+eyz4; dkim-atps=neutral X-Original-To: petitboot@lists.ozlabs.org Delivered-To: petitboot@lists.ozlabs.org Received: from mendozajonas.com (mendozajonas.com [188.166.185.233]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3t2zYr2tqhzDvjj for ; Tue, 25 Oct 2016 14:45:04 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=mendozajonas.com header.i=@mendozajonas.com header.b=LiO+eyz4; dkim-atps=neutral Received: from skellige.ozlabs.ibm.com (unknown [122.99.82.10]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) (Authenticated sender: sam@mendozajonas.com) by mendozajonas.com (Postfix) with ESMTPSA id CF85A14005E; Tue, 25 Oct 2016 11:44:58 +0800 (SGT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mendozajonas.com; s=mail; t=1477367099; bh=xC1aYChTKZO53YYwwqZgOP07QTzUAa8WV4hEAAceYBQ=; h=From:To:Cc:Subject:Date:From; b=LiO+eyz4zoOsLXv3NQJ/LDt+TjsKvF3G6Z5DytxXymcSfEp9I/JJdtWrObryDySZ/ +gbT4O/YAUsGynEeM2huG99ec+GQYwwd794rvRwXreDF/WPogQJKLbFPUXkVrjqQhB JbBmwJ4o5gCzpDH+XKSEV49l8iQLWHXUT20NlR3g= From: Samuel Mendoza-Jonas To: petitboot@lists.ozlabs.org Subject: [PATCH 1/6] lib/system: Add losetup to pb_system_apps Date: Tue, 25 Oct 2016 14:44:43 +1100 Message-Id: <20161025034448.28723-1-sam@mendozajonas.com> X-Mailer: git-send-email 2.10.0 X-BeenThere: petitboot@lists.ozlabs.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Petitboot bootloader development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Samuel Mendoza-Jonas MIME-Version: 1.0 Errors-To: petitboot-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Petitboot" Add losetup which will enable us to setup loopback devices from within Petitboot. Signed-off-by: Samuel Mendoza-Jonas --- configure.ac | 1 + lib/system/system.c | 1 + lib/system/system.h | 1 + 3 files changed, 3 insertions(+) diff --git a/configure.ac b/configure.ac index 41560d1..fdff93d 100644 --- a/configure.ac +++ b/configure.ac @@ -328,6 +328,7 @@ DEFINE_HOST_PROG(UMOUNT, umount, [/bin/umount]) DEFINE_HOST_PROG(WGET, wget, [/usr/bin/wget]) DEFINE_HOST_PROG(IP, ip, [/sbin/ip]) DEFINE_HOST_PROG(UDHCPC, udhcpc, [/sbin/udhcpc]) +DEFINE_HOST_PROG(LOSETUP, losetup, [/sbin/losetup]) AC_ARG_WITH( [tftp], diff --git a/lib/system/system.c b/lib/system/system.c index 917d444..cdf637d 100644 --- a/lib/system/system.c +++ b/lib/system/system.c @@ -28,6 +28,7 @@ const struct pb_system_apps pb_system_apps = { .wget = HOST_PROG_WGET, .ip = HOST_PROG_IP, .udhcpc = HOST_PROG_UDHCPC, + .losetup = HOST_PROG_LOSETUP, }; #ifndef TFTP_TYPE diff --git a/lib/system/system.h b/lib/system/system.h index ab25101..8497b22 100644 --- a/lib/system/system.h +++ b/lib/system/system.h @@ -13,6 +13,7 @@ struct pb_system_apps { const char *wget; const char *ip; const char *udhcpc; + const char *losetup; }; extern const struct pb_system_apps pb_system_apps;