From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thorsten Wilms Subject: Re: Half a success with chroot Date: Tue, 13 Mar 2018 11:16:02 +0100 Message-ID: <68125df5-87ff-739c-6a5d-e4268563a280@freenet.de> References: <80adf28a-7058-987a-b934-8e52fa26b68d@freenet.de> Reply-To: t_w_@freenet.de Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Return-path: In-Reply-To: Content-Language: en-GB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" Cc: Guix-devel , help-guix List-Id: guix-devel.gnu.org On 12.03.2018 23:29, Gábor Boskovits wrote: > Could you please check, if the solution mentioned here works for you: > https://bugzilla.redhat.com/show_bug.cgi?id=1361043 > > A short summary: Similar error can be caused by shared mounts. > > This way you can check if this applies. > > Note 'shared' in the output: > > grep -iP '/ /\s' /proc/$$/mountinfo > ... > 25 0 252:1 / / rw,relatime shared:1 - ext4 /dev/mapper/my--vg-root rw,errors=remount-ro,data=ordered > ... $ grep -iP '/ /\s' /proc/$$/mountinfo 26 0 8:17 / / rw,relatime shared:1 - ext4 /dev/sdb1 rw,errors=remount-ro,data=ordered > This is usual in systemd systems, and Ubuntu is one of them. > > Calling unshare -m within the process context helps this. I interpreted that to mean after the chroot, but: --- $ sudo chroot /media/ssd-alt-system /run/current-system/profile/bin/bash root@charly /# source /etc/profile root@charly /# unshare -m unshare: failed to execute /bin/bash: No such file or directory --- However, combined with chroot, it works: --- $ sudo unshare -m sudo chroot /media/ssd-alt-system /run/current-system/profile/bin/bash root@charly /# source /etc/profile root@charly /# guix-daemon --build-users-group=guixbuild & [1] 5907 root@charly /# su thorwil thorwil@charly /$ source /etc/profile thorwil@charly /$ guix package -i emacs-bash-completion guile: warning: failed to install locale warning: failed to install locale: Invalid argument accepted connection from pid 5916, user thorwil spurious SIGPOLL spurious SIGPOLL spurious SIGPOLL The following package will be installed: emacs-bash-completion 2.0.0 /gnu/store/7irxjifw4m8sj0if2nj0r26vf0n0imsj-emacs-bash-completion-2.0.0 substitute: guile: warning: failed to install locale substitute: warning: failed to install locale: Invalid argument spurious SIGPOLL substitute: updating list of substitutes from 'https://mirror.hydra.gnu.org'... 100.0% The following derivations will be built: /gnu/store/gdihnrv0zykypajy7p94k9qzpmgqbkvz-profile.drv /gnu/store/xlyyh54y77nm8gzm81rckkcvzaihn7dh-fonts-dir.drv /gnu/store/pm80lbbbx2xhvnfb838zn90bwwcw2818-xdg-desktop-database.drv /gnu/store/nkcspwxnd7hmf144krxzv1clq4gch6ms-ca-certificate-bundle.drv /gnu/store/n72ahz242h07dz32g2fkpr308a6cwdb6-xdg-mime-database.drv /gnu/store/fw9k5rg7p6czcp4bnnqkr57gv1qcyg78-gtk-im-modules.drv /gnu/store/856smz8kn9l2gq2b6qcykv6aa06c3qv7-info-dir.drv /gnu/store/1bybb1dnry03qwkr2d2888xi2z0hb6y7-gtk-icon-themes.drv /gnu/store/4vgn265kihmk1aayy3rg5h4z00dvlfmy-emacs-bash-completion-2.0.0.drv /gnu/store/gwlj87yvqfsrv6lzcphfm65ndwpar0df-manual-database.drv grafting '/gnu/store/hfc5j4dq387s2iyvz392dja8zc75cvss-emacs-bash-completion-2.0.0' -> '/gnu/store/7irxjifw4m8sj0if2nj0r26vf0n0imsj-emacs-bash-completion-2.0.0'... Creating manual page database... 32 entries processed in 0.2 s warning: collision encountered: /gnu/store/jfbf26368y3q897whlf8n5vina2scj82-gtk-icon-themes/share/icons/hicolor/icon-theme.cache /gnu/store/wndka13848kxaxw2ymv7l4ajzi1abrbb-inkscape-0.92.2/share/icons/hicolor/icon-theme.cache warning: arbitrarily choosing /gnu/store/jfbf26368y3q897whlf8n5vina2scj82-gtk-icon-themes/share/icons/hicolor/icon-theme.cache 44 packages in profile thorwil@charly /$ --- There are still those "spurious SIGPOLL" and I don't think I saw "substitute: guile: warning: failed to install locale" when booted into Guix SD. > I'm forwarding this also to devel, so that we can discuss, if doing this > is advisable in > general. WDYT? OK, I just subscribed to guix-devel. -- Thorsten Wilms thorwil's design for free software: http://thorwil.wordpress.com/