From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bengt Richter Subject: bug#37233: lsblk not up to date in util-linux Date: Fri, 30 Aug 2019 02:42:52 -0700 Message-ID: <20190830094252.GA16694@PhantoNv4ArchGx.localdomain> Reply-To: Bengt Richter Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:54098) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i3dRv-00016S-0p for bug-guix@gnu.org; Fri, 30 Aug 2019 05:44:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i3dRt-0006AC-1x for bug-guix@gnu.org; Fri, 30 Aug 2019 05:44:06 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:44489) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i3dRr-00067R-1W for bug-guix@gnu.org; Fri, 30 Aug 2019 05:44:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1i3dRp-0000jK-Td for bug-guix@gnu.org; Fri, 30 Aug 2019 05:44:01 -0400 Sender: "Debbugs-submit" Resent-Message-ID: Received: from eggs.gnu.org ([2001:470:142:3::10]:47095) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i3dQy-0000bz-OA for bug-guix@gnu.org; Fri, 30 Aug 2019 05:43:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i3dQx-0003PT-43 for bug-guix@gnu.org; Fri, 30 Aug 2019 05:43:08 -0400 Received: from imta-35.everyone.net ([216.200.145.35]:46710 helo=imta-38.everyone.net) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1i3dQw-0003HG-JA for bug-guix@gnu.org; Fri, 30 Aug 2019 05:43:06 -0400 Received: from pps.filterd (m0004961.ppops.net [127.0.0.1]) by imta-38.everyone.net (8.16.0.27/8.16.0.27) with SMTP id x7U9cQF9024611 for ; Fri, 30 Aug 2019 02:43:02 -0700 Received: by m0117124.mta.everyone.net (EON-AUTHRELAY2 - 32d0d199) id m0117124.5d552785.2621a9 for ; Fri, 30 Aug 2019 02:43:01 -0700 Content-Disposition: inline List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: 37233@debbugs.gnu.org Very annoying, since I made a little script called ls-mounts to show info about currently mounted devices. It should make output like this: MOUNTPOINT KNAME LABEL PARTLABEL SIZE FSAVAIL FSUSE% UUID /boot nvme0n1p1 PhantoV1EFI PhantoNv1EFI 1G 510.4M 50% 6E3C-D410 [SWAP] nvme0n1p3 PhantoNv3Swap 32G 24151091-f47a-46e2-a6cb-e5219eddae7c / nvme0n1p4 PhantoNv4ArchGx PhantoNv4ArchGx 54.2G 7.1G 82% 12eec2bf-bc81-48a8-b444-26913c078302 but guix defines lsblk as you see below, so the output is not the above, but lsblk: unknown column: fsavail,fsuse%,uuid If I force /usr/bin like ---- #!/usr/bin/bash # ~/bin/ls-mounts -- like boot-context mounts part, with uuid and partlabel added /usr/bin/lsblk -o mountpoint,kname,label,partlabel,size,fsavail,fsuse%,uuid|egrep '^(/|M|\[)' ---- then I get the desired output above. The difference is apparently util-linux 2.32.1 vs the newer 2.34, where the newer one understands more field names for -o ... If I take the /usr/bin/ and use just lsblk -o ..., I get the guix profile version even with the hash-bang remaining #!/usr/bin/bash, which is as it should be according to the $PATH. $ which -a lsblk /home/bokr/.guix-profile/bin/lsblk /usr/bin/lsblk $ which -a lsblk|xargs readlink -f /gnu/store/8k4pnixpz73kxvxbjqajgbprjjmmgpxy-util-linux-2.32.1/bin/lsblk /usr/bin/lsblk $ which -a lsblk|xargs readlink -f|xargs file /gnu/store/8k4pnixpz73kxvxbjqajgbprjjmmgpxy-util-linux-2.32.1/bin/lsblk: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /gnu/store/h90vnqw0nwd0hhm1l5dgxsdrigddfmq4-glibc-2.28/lib/ld-linux-x86-64.so.2, for GNU/Linux 2.6.32, not stripped /usr/bin/lsblk: ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, BuildID[sha1]=4028ee9653d75f37372a56e4f53215d75c75f564, for GNU/Linux 3.2.0, stripped $ which -a lsblk|xargs readlink -f|while read line;do echo -ne "$line:\n ";$line --version;done /gnu/store/8k4pnixpz73kxvxbjqajgbprjjmmgpxy-util-linux-2.32.1/bin/lsblk: lsblk from util-linux 2.32.1 /usr/bin/lsblk: lsblk from util-linux 2.34 $ Hope somebody can update it. I think I found the updated version at https://mirrors.edge.kernel.org/pub/linux/utils/util-linux/v2.34/util-linux-2.34.tar.xz But I have worse problems -- weston-launch now core dumps, after guix install of latest wayland and weston ;-/ But that's not for this post. Regards, Bengt Richter