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 eO3MBE+ZXV/cegAA0tVLHw (envelope-from ) for ; Sun, 13 Sep 2020 04:00:15 +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 sKXEOk6ZXV8QYQAA1q6Kng (envelope-from ) for ; Sun, 13 Sep 2020 04:00:14 +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 7969294044B for ; Sun, 13 Sep 2020 04:00:14 +0000 (UTC) Received: from localhost ([::1]:56112 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kHJBV-0005Ui-Cn for larch@yhetil.org; Sun, 13 Sep 2020 00:00:13 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48750) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kHJBL-0005So-AY for bug-guix@gnu.org; Sun, 13 Sep 2020 00:00:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:37750) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kHJBK-0008Rf-UK for bug-guix@gnu.org; Sun, 13 Sep 2020 00:00:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kHJBK-0006h2-PG for bug-guix@gnu.org; Sun, 13 Sep 2020 00:00: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: Sun, 13 Sep 2020 04:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 43366 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 43366@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.159996955025608 (code B ref -1); Sun, 13 Sep 2020 04:00:02 +0000 Received: (at submit) by debbugs.gnu.org; 13 Sep 2020 03:59:10 +0000 Received: from localhost ([127.0.0.1]:49296 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kHJAT-0006ex-Ec for submit@debbugs.gnu.org; Sat, 12 Sep 2020 23:59:10 -0400 Received: from lists.gnu.org ([209.51.188.17]:33470) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kHIpm-0006C4-PW for submit@debbugs.gnu.org; Sat, 12 Sep 2020 23:37:47 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46096) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kHIpm-0005LQ-Ii for bug-guix@gnu.org; Sat, 12 Sep 2020 23:37:46 -0400 Received: from mout02.posteo.de ([185.67.36.66]:57889) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kHIpj-000625-RN for bug-guix@gnu.org; Sat, 12 Sep 2020 23:37:46 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id A97CA2400FB for ; Sun, 13 Sep 2020 05:37:38 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1599968258; bh=sBwdnbFyWZ99wteSshlj0EDGO6h9WFIF5XnrTRWga2s=; h=From:To:Subject:Date:From; b=FNepZW0kGzIp//P9e42oqKL6fXeIwS0mKBGxCJeSAlQYqWM6/FMqq3L+1gsFR5obx uWOalswy9dckflw5fROoZoiLdvkYosLWu9LDxJXJx97xIZgDf5oKjGQAzLNeRJWMQ4 sjb/dJ5hvM49bH5eUEXTtgF/LeG94ysVVigut5tjuh1OYLQ7ZBsEHgn1OxL64pWmYl YUNxsr/W8RmCdsAM3LJevCuJkQyE4hFUOSuhuHAFaedT/2xryUjE3AYSTIjOWdVXUk T4/H8bPH7JIcHwfvIEl2cd1bRJ8DGA2VRfPTqVUyHSrPJ313N9vusTJuhfCVG8FSAw kuMpZGW/MEPoA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4BpwDK36JQz6tmV for ; Sun, 13 Sep 2020 05:37:37 +0200 (CEST) From: Fredrik Salomonsson Date: Sat, 12 Sep 2020 20:37:35 -0700 Message-ID: <87v9gi5ou8.fsf@posteo.net> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=185.67.36.66; envelope-from=plattfot@posteo.net; helo=mout02.posteo.de X-detected-operating-system: by eggs.gnu.org: First seen = 2020/09/12 23:37:39 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Mailman-Approved-At: Sat, 12 Sep 2020 23:59:08 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -2.3 (--) X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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=FNepZW0k; 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: 2.59 X-TUID: EIA+rwy48dhG --=-=-= Content-Type: text/plain When you have separate btrfs subvolumes for /gnu and /var/guix, you'll encounter this error running `guix system init /mnt/etc/config.scm /mnt` when it tries to copy things to /mnt. My guess is that guix is trying to remove one of them but fails as they're mounted. I encountered this issue while I tried installing guix system on my main laptop. But I have encountered this before [1]. When I installed guix system on my secondary laptop. I worked around it back then by using guix-0.15.0. For my secondary laptop I have this layout | subvol | Mountpoint | Comment | |-----------------------+------------+-----------------| | __current/guixsd-root | / | root for GuixSD | | __current/grub | /boot/grub | grub config | | __current/guix | /var/guix | guix stuff | | __current/gnu | /gnu | Store etc | | __current/home | /home | home partition | For my main laptop I tried: | subvol | Mountpoint | Comment | |--------+------------+----------------| | @ | / | root for Guix | | @grub | /boot/grub | grub config | | @guix | /var/guix | guix stuff | | @gnu | /gnu | Store etc | | @home | /home | home partition | Found another thread that also had this issue [2], and the same workaround worked for me. I.e. simplified the layout: | subvol | Mountpoint | Comment | |-----------+------------+----------------| | @ | / | root for Guix | | @home | /home | home partition | This seems to just be an issue when running guix system init, as I've been using my secondary laptop with separate subvolumes for /gnu and /var/guix without any issues since 0.15. The guix version I used to install my main laptop with was 1.1.0-25.44c6e6f. I generated it with guix system disk-image --file-system-type=iso9660 \ gnu/system/install.scm As described in the manual. Thanks [1] https://lists.gnu.org/archive/html/help-guix/2018-12/msg00055.html [2] https://lists.gnu.org/archive/html/help-guix/2019-06/msg00259.html --=-=-= Content-Type: text/plain Content-Disposition: attachment; filename=heimdal-sway.scm Content-Description: Guix system config file ;; This is an operating system configuration template ;; for a "desktop" setup without full-blown desktop ;; environments. (use-modules (gnu) (gnu packages) (gnu system nss) (gnu system locale) (gnu services nfs) (gnu services sddm) (ice-9 rdelim) (ice-9 format) (srfi srfi-1)) (use-service-modules desktop networking ssh base xorg) (use-package-modules wm certs shells xdisorg display-managers) (define plattfot (user-account (name "plattfot") (group "users") ;; Define a G-Expr to find the path of the zsh binary: ;; https://gitlab.com/rain1/guix-wiki/wikis/FAQ#how-do-i-make-my-login-shell-zsh ;;(shell #~(string-append #$zsh "/bin/zsh")) (supplementary-groups '("wheel" "netdev" "audio" "video")) (home-directory "/home/plattfot"))) ;; Specify a mapped device for the encrypted root partition. ;; The UUID is that returned by 'cryptsetup luksUUID'. (define mapped-swap (mapped-device (source (uuid "3f1a433f-e3d5-46f1-8471-b0cfee72a659")) (target "swap") (type luks-device-mapping))) (define mapped-root (mapped-device (source (uuid "0633603e-019c-4be0-b35e-abb055660909")) (target "root") (type luks-device-mapping))) ;; Partion layout for `root` ;; | subvol | Mountpoint | Comment | Shared | ;; |-----------+------------+--------------------+--------| ;; | @ | / | root for Guix | no | ;; | @home | /home | home partition | yes | (define btrfs-common-options '("discard" "compress=lzo" "space_cache" "autodefrag")) (define (btrfs-mount-options subvol) "Return the btrfs mount options I use. Where SUBVOL is the subvolume to mount" (string-join `(,@btrfs-common-options ,(format #f "subvol=~a" subvol)) ",")) (define fs-root (file-system (mount-point "/") (type "btrfs") (device (file-system-label "root")) (options (btrfs-mount-options "@")) (needed-for-boot? #t) (dependencies `(,mapped-root)))) (define fs-home (file-system (mount-point "/home") (type "btrfs") (device (file-system-label "root")) (options (btrfs-mount-options "@home")) (needed-for-boot? #t) (dependencies `(,fs-root)))) (define nfs-valhalla (file-system (device "fafner:/srv/nfs4/Valhalla") (mount-point "/media/Valhalla") (type "nfs4") (mount? #f) (check? #f))) (operating-system (host-name "heimdal") (timezone "Canada/Pacific") (locale "en_US.utf8") (locale-definitions (list (locale-definition (name "en_US.utf8") (source "en_US") (charset "UTF-8")) (locale-definition (name "sv_SE.utf8") (source "sv_SE") (charset "UTF-8")))) ;; Assuming /dev/sda is the target hard disk, and "root" ;; is the label of the target root file system. (bootloader (grub-configuration (target "/dev/sda"))) ;; Kernel arguments (kernel-arguments '("rootflags=compress=lzo,subvol=@")) (mapped-devices (list mapped-root mapped-swap)) (file-systems (cons* fs-root fs-home nfs-valhalla %base-file-systems)) (swap-devices '("/dev/mapper/swap")) (users (cons plattfot %base-user-accounts)) (keyboard-layout (keyboard-layout "us" #:options '("ctrl:swapcaps"))) (packages (cons* sway waybar rofi guix-simplyblack-sddm-theme ;;zsh nss-certs ;for HTTPS access %base-packages)) ;; Use the "desktop" services, which include the X11 ;; log-in service, networking with Wicd, and more. (services ;;%desktop-services (cons* (service openssh-service-type (openssh-configuration (port-number 6060) (password-authentication? #f))) (extra-special-file "/bin/env" (file-append coreutils "/bin/env")) (service sddm-service-type (sddm-configuration (display-server "wayland") (theme "guix-simplyblack-sddm"))) (remove (lambda (service) (member (service-kind service) (list gdm-service-type ))) %desktop-services))) ;; Allow resolution of '.local' host names with mDNS. (name-service-switch %mdns-host-lookup-nss)) --=-=-= Content-Type: text/plain -- s/Fred[re]+i[ck]+/Fredrik/g --=-=-=--