From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=18.228.144.36; helo=mail.paulo.ac; envelope-from=paulo@paulo.ac; receiver=edk2-devel@lists.01.org Received: from mail.paulo.ac (mail.paulo.ac [18.228.144.36]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 69D41211B158C for ; Thu, 24 Jan 2019 04:34:02 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by mail.paulo.ac (Postfix) with ESMTP id DCBF148E5943; Thu, 24 Jan 2019 12:33:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=paulo.ac; s=default; t=1548333239; bh=C4yBKO2uZS/KGha/dBeKkG89UxahsSDK/GG80kJ43cY=; h=From:To:Subject:In-Reply-To:References:Date; b=lW+aXSV8onwj2YFCS8u26GThtK2KSNWZmkVUt8owShUP9eRS+CuwWbThjbQfCqayl n6AsWfxv6qFaq/ijV5KdvJzGtGXr8CndBHd17cOphk27AETzQfu7ok0zPohAnhyqVE 9NWyhtxAxYoFmpG+0uz2LR5c0ugyzh1jC2KnFIu8= Received: from mail.paulo.ac ([127.0.0.1]) by localhost (ip-172-31-5-70.sa-east-1.compute.internal [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 2KVLjtWfiBM5; Thu, 24 Jan 2019 12:33:59 +0000 (UTC) Received: from localhost (200.175.74.141.dynamic.adsl.gvt.net.br [200.175.74.141]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.paulo.ac (Postfix) with ESMTPSA id 11BAF48E5942; Thu, 24 Jan 2019 12:33:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=paulo.ac; s=default; t=1548333239; bh=C4yBKO2uZS/KGha/dBeKkG89UxahsSDK/GG80kJ43cY=; h=From:To:Subject:In-Reply-To:References:Date; b=lW+aXSV8onwj2YFCS8u26GThtK2KSNWZmkVUt8owShUP9eRS+CuwWbThjbQfCqayl n6AsWfxv6qFaq/ijV5KdvJzGtGXr8CndBHd17cOphk27AETzQfu7ok0zPohAnhyqVE 9NWyhtxAxYoFmpG+0uz2LR5c0ugyzh1jC2KnFIu8= From: Paulo Alcantara To: Rafael Machado , "edk2-devel\@lists.01.org" In-Reply-To: References: Date: Thu, 24 Jan 2019 10:32:05 -0200 Message-ID: <871s5244oq.fsf@paulo.ac> MIME-Version: 1.0 Subject: Re: UEFI Shell + startup.nsh X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Jan 2019 12:34:02 -0000 Content-Type: text/plain Rafael Machado writes: > I have a question. > Considering I have a PXE server that my client downloads a shell.efi app. > Considering also that I need to execute a .nsh script, but I their is no > media at the system. (no usb or storage device attached) > > Is there any way to embed a startup.nsh at the shell.efi application? > As far as I know with PXE just one file is downloaded and executed. (I am > also checking how to use the EfiRamDisk protocol to create a temporary > place for the .nsh generated files.) You'd probably need to format your UEFI RAM disk with an FAT file system, download the .nsh script into it, then UEFI shell application would look for the startup script and then execute it. Paulo