From debbugs-submit-bounces@debbugs.gnu.org Wed May 27 03:24:51 2020 Received: (at 41560) by debbugs.gnu.org; 27 May 2020 07:24:51 +0000 Received: from localhost ([127.0.0.1]:48088 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jdqQl-0003gx-4s for submit@debbugs.gnu.org; Wed, 27 May 2020 03:24:51 -0400 Received: from mail-wr1-f51.google.com ([209.85.221.51]:35373) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jdqQc-0003fZ-B1 for 41560@debbugs.gnu.org; Wed, 27 May 2020 03:24:42 -0400 Received: by mail-wr1-f51.google.com with SMTP id x14so17558379wrp.2 for <41560@debbugs.gnu.org>; Wed, 27 May 2020 00:24:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=tmHavA/iyYGOtQCIarJNHSwcrfGqzebBUjFLfQpN014=; b=lY7qKyuDN37FstEigpVwnUay8wXEraeZpzpv6vClwEOe+tqmYM1en+rDDca8KJKpUD iVn/yvUIRu9XSk3+odNw/3q/kc5jnkXNguoyWuviIVhts2EmfSb6EoGv9fDk0e9QGgZy rPmxmmEZyF+aQAoFxfUBn9Am4w7dBWTE40DmzQi7nzP69Nu3zo2j1JuOl+WR52Y8kR30 TsLenWfz/Ix2HsCXM8LMDrQ36g3h4XSE8FpgNCVg/muW4Q2fzTiYXDVUMQHOY8cDCj+u q4TLTysPCd2uSht8gaCd8ocRhmGcw81Fg0vdcffy1iwem9XA0t50jVb+pb7IMbyidPYq XhYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=tmHavA/iyYGOtQCIarJNHSwcrfGqzebBUjFLfQpN014=; b=kO9eiez7U9yumPiqALaVHMkz4AEdgwsQtfzuhjr95KcxNgBb/yP4fbdpxls8J/nmDx GBiAk5ocCJ/z3ICdLBk5ZMwRk3PP+Rjrm7CpIIAXxPvGVxyugAVkqcCMGL3qzc2PrDM0 Tmp4W2wOKO3tNJ6Eh2reIT4g25HVm1AKRyZnFptG2aqPDeDjMvFV2pwqVzQTmkJJ2cPm LD4xUkznvzZsv1xKa8O9+k5bnTuMc6la+YSJer5EfDi3K+kLvcf0YeXdVsEg26+iUMNT 9G7hGpzTDFh4L8qCOyPZHUBm9nCUDvYk2xjWeeERNE8ElESOM7zviBkduSQdG73juIsL aWaA== X-Gm-Message-State: AOAM530gElQSr+t56M/qGy3orN2eB9w1uTieSdp2rFa8kQ40lyvtJ51X B/ob6gYfJsxyf7gJ912Or0/P/mVAc6I= X-Google-Smtp-Source: ABdhPJyaEA6/GuP7TGQHfUY/tnQPgh6rej67t7j83J4YawhyxffVfVQFWEgWrdgQMqN5dNmyWTh7lQ== X-Received: by 2002:a5d:460d:: with SMTP id t13mr24731211wrq.280.1590564276162; Wed, 27 May 2020 00:24:36 -0700 (PDT) Received: from meru.fronius.com ([2a01:e0a:fa:a50:e5a2:3f70:d249:6ce9]) by smtp.gmail.com with ESMTPSA id v28sm2002845wra.77.2020.05.27.00.24.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 May 2020 00:24:35 -0700 (PDT) From: Mathieu Othacehe X-Google-Original-From: Mathieu Othacehe To: 41560@debbugs.gnu.org Subject: [PATCH 7/8] system: image: Fix image-with-os. Date: Wed, 27 May 2020 09:24:19 +0200 Message-Id: <20200527072420.26140-7-othacehe@gnu.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200527072420.26140-1-othacehe@gnu.org> References: <20200527072420.26140-1-othacehe@gnu.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 41560 Cc: Mathieu Othacehe X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) * gnu/system/image.scm (image-with-os): Do not reorder partitions, as we want them to be created according to definition order. --- gnu/system/image.scm | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/gnu/system/image.scm b/gnu/system/image.scm index a706f872a8..97124a4699 100644 --- a/gnu/system/image.scm +++ b/gnu/system/image.scm @@ -424,18 +424,18 @@ to OS. Also set the UUID and the size of the root partition." (string=? (file-system-mount-point fs) "/")) (operating-system-file-systems os))) - (let*-values (((partitions) (image-partitions base-image)) - ((root-partition other-partitions) - (srfi-1:partition root-partition? partitions))) - (image - (inherit base-image) - (operating-system os) - (partitions - (cons (partition - (inherit (car root-partition)) - (uuid (file-system-device root-file-system)) - (size (root-size base-image))) - other-partitions))))) + (image + (inherit base-image) + (operating-system os) + (partitions + (map (lambda (p) + (if (root-partition? p) + (partition + (inherit p) + (uuid (file-system-device root-file-system)) + (size (root-size base-image))) + p)) + (image-partitions base-image))))) (define (operating-system-for-image image) "Return an operating-system based on the one specified in IMAGE, but -- 2.26.2