From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 6D5dHMwGYV90OgAA0tVLHw (envelope-from ) for ; Tue, 15 Sep 2020 18:24:12 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id 6JPbFswGYV+mCAAA1q6Kng (envelope-from ) for ; Tue, 15 Sep 2020 18:24:12 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id CF4ED9402C8 for ; Tue, 15 Sep 2020 18:24:11 +0000 (UTC) Received: from localhost ([::1]:39576 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kIFcg-0000Yq-27 for larch@yhetil.org; Tue, 15 Sep 2020 14:24:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33114) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kIFcZ-0000Yi-WC for bug-guix@gnu.org; Tue, 15 Sep 2020 14:24:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:49007) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kIFcY-00042G-Kh for bug-guix@gnu.org; Tue, 15 Sep 2020 14:24:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kIFcY-0007zx-Hp for bug-guix@gnu.org; Tue, 15 Sep 2020 14:24:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#43366: "error: rmdir: Device or resource busy" when using btrfs Resent-From: Fredrik Salomonsson Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 15 Sep 2020 18:24:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43366 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Maxim Cournoyer Received: via spool by 43366-submit@debbugs.gnu.org id=B43366.160019422930725 (code B ref 43366); Tue, 15 Sep 2020 18:24:02 +0000 Received: (at 43366) by debbugs.gnu.org; 15 Sep 2020 18:23:49 +0000 Received: from localhost ([127.0.0.1]:60553 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kIFcK-0007zU-QN for submit@debbugs.gnu.org; Tue, 15 Sep 2020 14:23:49 -0400 Received: from mout01.posteo.de ([185.67.36.65]:60866) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kIFUc-0007mn-BS for 43366@debbugs.gnu.org; Tue, 15 Sep 2020 14:15:51 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id E060C160062 for <43366@debbugs.gnu.org>; Tue, 15 Sep 2020 20:15:43 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1600193743; bh=CHOH9N6RAA+WgXPXz+BeuDSXxd6qcVN2xejqqnDfzIg=; h=From:To:Cc:Subject:Date:From; b=kiPxlvmEFCX+mblnYH2Fk+BX0+W9YPX6KgyoTMiAWY+R4GyzgShayX+udth/5p3MT 4sM/+ZhqmrlzbZ3weYOiUBoLiOkb4kFB7kDmQN/gAtnVpcT26UwS4WigBURJAojOL/ zWABAs7ulxQUn8pHz/ethSytL+tt1orI7HHCo6sZpVbsR0R6bvj5lPFaPdDHiTx/+1 0MXU/puHw7rPaoUUtn37jUTJljuxIfbXQoNVlTdRSk77ag6hMfp+BshwTi0YP3BI8C rdBfZ1bIWyza2kJBRyjzcGkCe4fjY47cmpBR2ejBHV8oc888DMGCdMhQZBuX/2/mdw PrJqSo2QVZ9iQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4BrWcZ4vh4z6tm8; Tue, 15 Sep 2020 20:15:42 +0200 (CEST) From: Fredrik Salomonsson In-Reply-To: <87wo0v3cb1.fsf@gmail.com> References: <87v9gi5ou8.fsf@posteo.net> <87wo0v3cb1.fsf@gmail.com> Date: Tue, 15 Sep 2020 11:15:40 -0700 Message-ID: <87sgbi9a9f.fsf@posteo.net> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Mailman-Approved-At: Tue, 15 Sep 2020 14:23:47 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -1.0 (-) X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 43366@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=posteo.net header.s=2017 header.b=kiPxlvmE; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none); spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Spam-Score: 0.09 X-TUID: ibwv0EAOgwsC Hi Maxim, Maxim Cournoyer writes: > I just sent a patch now, but here's a bit more background on what led to > it. Nice find! I'm unable to test out the patch right now on my original use case as I soft bricked my laptop fiddling around with coreboot. And I'm having some issues with my external flasher. > The issue seems to be with: > > --8<---------------cut here---------------start------------->8--- > ;; If a previous installation was attempted, make sure we start anew; in > ;; particular, we don't want to keep a store database that might not > ;; correspond to what we're actually putting in the store. > (let ((state (string-append target "/var/guix"))) > (when (file-exists? state) > (delete-file-recursively state))) > --8<---------------cut here---------------end--------------->8--- > > Which is part of the install procedure (which gets called when using > 'guix system init /some/target'). So your guess was correct :-). Yay! > To confirm this was the case, I did: > > sudo btrfs subvolume create /tmp/toto > mkdir /tmp/tata > sudo mount -o subvol=/tmp/toto /dev/mapper/cryptroot /tmp/tata > > sudo -E guix repl >> ,import (guix build utils) >> (delete-file-recursively "/tmp/tata/") > ice-9/boot-9.scm:1669:16: In procedure raise-exception: > In procedure rmdir: Device or resource busy > > Bingo! > > Reading the docstring of delete-file-recursively, it says it should > "report but ignore errors", so that's a bug. Yeah, that's is the same error I get when running guix init. So this sounds like it will fix my issue! Thanks for the speedy fix. -- s/Fred[re]+i[ck]+/Fredrik/g