| Message ID | 20260421183511.2044469-13-sjg@u-boot.org |
|---|---|
| State | New |
| Headers |
Return-Path: <concept-bounces+u-boot-concept=u-boot.org@u-boot.org> X-Original-To: u-boot-concept@u-boot.org Delivered-To: u-boot-concept@u-boot.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1776796592; bh=fKW5aMLwPn0r8k78cQxhC13DvKltvFtMUoKhBICkLlY=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=VmXbjtKKzBZopXEkn3BqA6rxbO0tiHj7c8GEabcslT3/0G5CUDj9kSQIjtEUkHSBu XDB/mfQKLfWohUnS8v7rDRe7An0at8HoA1Ze+ibG4wiXlLuDWDBO++3JXZbbIFtOCO eojw0qqSadBtMwJugHoEN+tOEbsUjUM+t32cbSzM= Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 458E06A603 for <u-boot-concept@u-boot.org>; Tue, 21 Apr 2026 12:36:32 -0600 (MDT) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10024) with ESMTP id J9dBr80_Cyqk for <u-boot-concept@u-boot.org>; Tue, 21 Apr 2026 12:36:32 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1776796592; bh=fKW5aMLwPn0r8k78cQxhC13DvKltvFtMUoKhBICkLlY=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=VmXbjtKKzBZopXEkn3BqA6rxbO0tiHj7c8GEabcslT3/0G5CUDj9kSQIjtEUkHSBu XDB/mfQKLfWohUnS8v7rDRe7An0at8HoA1Ze+ibG4wiXlLuDWDBO++3JXZbbIFtOCO eojw0qqSadBtMwJugHoEN+tOEbsUjUM+t32cbSzM= Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 342E16A604 for <u-boot-concept@u-boot.org>; Tue, 21 Apr 2026 12:36:32 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1776796590; bh=tJzL1L5ER/zcOYqXQhbhGv3oNreF4C2olwrmdOXS7wM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=IpzGfisbB6uixDiZYCvznjxHGbAhdV/QpA0Jxpsv8zHz0UggWIWv0pMqJJDwueCDt jmiZSV58pJKP0fOczwjqJMbTmR6N3LqM6Onv3/Oymes+HYK29lOC18TJTL4DgSA5BS o9ytsf1JIvo3W9ktJl0A7SER9rcpxQgT0+g/9dqo= Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 91D166A603; Tue, 21 Apr 2026 12:36:30 -0600 (MDT) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10026) with ESMTP id kBUGW8RqQbYw; Tue, 21 Apr 2026 12:36:30 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1776796586; bh=HqoBln68fLpCP8hmYR1mUqUgrZ3qI9aZdOZU3KsqfAE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=e6Fi+q2HOTy30r8SgUiexmp6QWP8Rlfb5hSFNHmX8WCKSBF8EVyIQB14yhA/XldRy UEhd3YiNvua18Wm08zpXr/mpOffIXRnoNwHPySoo4CX/YFnqb2UZd61HrJfzvPHaEU UuCPHYgVXwPjMNzdoCLweNo+XhQIrZvV4fPyu2+0= Received: from u-boot.org (unknown [174.51.25.52]) by mail.u-boot.org (Postfix) with ESMTPSA id 397196A601; Tue, 21 Apr 2026 12:36:26 -0600 (MDT) From: Simon Glass <sjg@u-boot.org> To: U-Boot Concept <concept@u-boot.org> Date: Tue, 21 Apr 2026 12:34:53 -0600 Message-ID: <20260421183511.2044469-13-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260421183511.2044469-1-sjg@u-boot.org> References: <20260421183511.2044469-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: GYUV3IIXY2WYVRKZ77TUIOF2RMG6CYHV X-Message-ID-Hash: GYUV3IIXY2WYVRKZ77TUIOF2RMG6CYHV X-MailFrom: sjg@u-boot.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Simon Glass <sjg@chromium.org> X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH 12/16] scripts: ubuntu-iso-to-uboot: Unlink stale output first List-Id: Discussion and patches related to U-Boot Concept <concept.u-boot.org> Archived-At: <https://lists.u-boot.org/archives/list/concept@u-boot.org/message/GYUV3IIXY2WYVRKZ77TUIOF2RMG6CYHV/> List-Archive: <https://lists.u-boot.org/archives/list/concept@u-boot.org/> List-Help: <mailto:concept-request@u-boot.org?subject=help> List-Owner: <mailto:concept-owner@u-boot.org> List-Post: <mailto:concept@u-boot.org> List-Subscribe: <mailto:concept-join@u-boot.org> List-Unsubscribe: <mailto:concept-leave@u-boot.org> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit |
| Series |
efi-x86: Boot Ubuntu live ISOs via U-Boot + BLS, end to end
|
|
Commit Message
Simon Glass
April 21, 2026, 6:34 p.m. UTC
From: Simon Glass <sjg@chromium.org> xorriso refuses to write into an existing non-empty file when -indev and -outdev differ: it treats the outdev as a session to extend and aborts with xorriso : FAILURE : -indev differs from -outdev and -outdev media holds non-zero data This bites any second run, whether invoked by hand or by the 'qemu-efi-iso' writer method added to labgrid for the new CI role. Unlink the destination so each invocation starts from a clean file. Signed-off-by: Simon Glass <sjg@chromium.org> --- scripts/ubuntu-iso-to-uboot.py | 6 ++++++ 1 file changed, 6 insertions(+)
diff --git a/scripts/ubuntu-iso-to-uboot.py b/scripts/ubuntu-iso-to-uboot.py index df38833a4c6..7fc20327f02 100755 --- a/scripts/ubuntu-iso-to-uboot.py +++ b/scripts/ubuntu-iso-to-uboot.py @@ -147,7 +147,13 @@ def repack_iso( -find is tolerant of missing files: if a distribution does not ship one of these binaries, the call is a no-op. + + xorriso refuses to write to an existing non-empty file when -indev + and -outdev differ (it would treat the outdev as a session to + extend), so unlink any stale output first. """ + if out_iso.exists(): + out_iso.unlink() command.run( 'xorriso', '-indev', str(in_iso),