From unknown Fri Jun 13 11:05:38 2025 X-Loop: help-debbugs@gnu.org Subject: bug#39969: Inconsistent specification of a file-system's device Resent-From: Damien Cassou Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sat, 07 Mar 2020 09:06:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 39969 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 39969@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.158357195011247 (code B ref -1); Sat, 07 Mar 2020 09:06:02 +0000 Received: (at submit) by debbugs.gnu.org; 7 Mar 2020 09:05:50 +0000 Received: from localhost ([127.0.0.1]:46251 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jAVP4-0002vK-Gr for submit@debbugs.gnu.org; Sat, 07 Mar 2020 04:05:50 -0500 Received: from lists.gnu.org ([209.51.188.17]:35021) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jAVP2-0002vC-3f for submit@debbugs.gnu.org; Sat, 07 Mar 2020 04:05:48 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:37607) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jAVP1-00088M-4R for bug-guix@gnu.org; Sat, 07 Mar 2020 04:05:47 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jAVP0-0004Ij-4m for bug-guix@gnu.org; Sat, 07 Mar 2020 04:05:47 -0500 Received: from mail.choca.pics ([80.67.172.235]:33152) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1jAVOz-0004B5-V4 for bug-guix@gnu.org; Sat, 07 Mar 2020 04:05:46 -0500 Received: from localhost (localhost.localdomain [IPv6:::1]) by mail.choca.pics (Postfix) with ESMTP id 0ED6F181929EE for ; Sat, 7 Mar 2020 10:05:42 +0100 (CET) Received: from mail.choca.pics ([IPv6:::1]) by localhost (mail.choca.pics [IPv6:::1]) (amavisd-new, port 10032) with ESMTP id dBH7bvYSaekR for ; Sat, 7 Mar 2020 10:05:41 +0100 (CET) Received: from localhost (localhost.localdomain [IPv6:::1]) by mail.choca.pics (Postfix) with ESMTP id 8FCAA181929E8 for ; Sat, 7 Mar 2020 10:05:41 +0100 (CET) X-Virus-Scanned: amavisd-new at choca.pics Received: from mail.choca.pics ([IPv6:::1]) by localhost (mail.choca.pics [IPv6:::1]) (amavisd-new, port 10026) with ESMTP id LKLolgRnFzZA for ; Sat, 7 Mar 2020 10:05:41 +0100 (CET) Received: from luz4 (176-140-37-135.abo.bbox.fr [176.140.37.135]) by mail.choca.pics (Postfix) with ESMTPSA id 3DC7118192B26 for ; Sat, 7 Mar 2020 10:05:41 +0100 (CET) From: Damien Cassou Date: Sat, 07 Mar 2020 10:05:40 +0100 Message-ID: <87a74sk00r.fsf@cassou.me> MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 80.67.172.235 X-Spam-Score: 0.2 (/) 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: -0.8 (/) Hi, the manual says that file system labels should be specified with the file-system-label procedure like this: (file-system (mount-point "/home") (type "ext4") (device (file-system-label "my-home"))) Nevertheless, system-qemu-image seems to expect only strings: (define* (system-qemu-image os #:key (file-system-type "ext4") (disk-image-size (* 900 (expt 2 20)))) (define file-systems-to-keep ;; Keep only file systems other than root and not normally bound to real ;; devices. (remove (lambda (fs) (let ((target (file-system-mount-point fs)) (source (file-system-device fs))) (or (string=? target "/") (string-prefix? "/dev/" source)))) (operating-system-file-systems os))) The code above stores the result of file-system-device to the source variable and then expects it to be a string. -- Damien Cassou "Success is the ability to go from one failure to another without losing enthusiasm." --Winston Churchill