Your message dated Fri, 20 Jan 2017 13:04:29 +0000 with message-id <[email protected]> and subject line Bug#794409: fixed in os-prober 1.72 has caused the Debian Bug report #794409, regarding os-prober: generic detection using /etc/os-release (for Void Linux and NixOS) to be marked as done.
This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact [email protected] immediately.) -- 794409: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=794409 Debian Bug Tracking System Contact [email protected] with problems
--- Begin Message ---Package: os-prober Version: 1.65 Severity: normal Tags: patch Dear Maintainer, os-prober correctly detects Fedora 22, however it doesn't detect Void Linux or NixOS (they are reported as unknown Linux distribution). Actual os-prober 1.65 output: /dev/mapper/os-fedora_root:Fedora release 22 (Twenty Two):Fedora:linux /dev/mapper/os-void_root:unknown Linux distribution:Linux:linux Expected output: /dev/mapper/os-fedora_root:Fedora release 22 (Twenty Two):Fedora:linux /dev/mapper/os-nixos_root:NixOS 14.12.801.221101a (Caterpillar):NixOS:linux /dev/mapper/os-void_root:Void Linux:Void:linux Both of these have an /etc/os-release file, and using the patch below allows update-grub2 to generate the expected names. --- a/usr/lib/os-probes/mounted/90linux-distro 2014-09-29 00:04:17.000000000 +0300 +++ b/usr/lib/os-probes/mounted/90linux-distro 2015-08-02 21:51:46.911231870 +0300 @@ -17,7 +17,7 @@ # symlinks we need to also check in $dir/usr/lib* for distributions that # moved /lib* to /usr and only left symlinks behind. # TODO: look for ld-linux.so on arches that have it -if (ls "$dir"/lib*/ld*.so* || ls "$dir"/usr/lib*/ld*.so*) >/dev/null 2>/dev/null; then +if (ls "$dir/etc/os-release" || ls "$dir"/lib*/ld*.so* || ls "$dir"/usr/lib*/ld*.so*) >/dev/null 2>/dev/null; then if [ -e "$dir/etc/debian_version" ]; then short="Debian" long="$(printf "Debian GNU/Linux (%s)\n" "$(cat "$dir/etc/debian_version")")" @@ -125,6 +125,9 @@ elif [ -e "$dir/etc/meego-release" ]; then short="MeeGo" long="$(head -1 "$dir/etc/meego-release")" + elif [ -e "$dir/etc/os-release" ]; then + short=$(cat $dir/etc/os-release|grep ^NAME=|cut -f2 -d=|cut -f2 -d\") + long=$(cat $dir/etc/os-release|grep ^PRETTY_NAME=|cut -f2 -d=|cut -f2 -d\") else short="Linux" long="unknown Linux distribution" -- System Information: Debian Release: 8.1 APT prefers stable APT policy: (900, 'stable'), (500, 'stable-updates'), (500, 'unstable'), (500, 'testing'), (1, 'experimental') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 4.1.0-trunk-amd64 (SMP w/8 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: sysvinit (via /sbin/init) Versions of packages os-prober depends on: ii libc6 2.19-18 os-prober recommends no packages. os-prober suggests no packages. -- no debconf information
--- End Message ---
--- Begin Message ---Source: os-prober Source-Version: 1.72 We believe that the bug you reported is fixed in the latest version of os-prober, which is due to be installed in the Debian FTP archive. A summary of the changes between this version and the previous one is attached. Thank you for reporting the bug, which will now be closed. If you have further comments please address them to [email protected], and the maintainer will reopen the bug report if appropriate. Debian distribution maintenance software pp. Colin Watson <[email protected]> (supplier of updated os-prober package) (This message was generated automatically at their request; if you believe that there is a problem with it please contact the archive administrators by mailing [email protected]) -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Format: 1.8 Date: Fri, 20 Jan 2017 12:44:34 +0000 Source: os-prober Binary: os-prober-udeb os-prober Architecture: source Version: 1.72 Distribution: unstable Urgency: medium Maintainer: Debian Install System Team <[email protected]> Changed-By: Colin Watson <[email protected]> Description: os-prober - utility to detect other OSes on a set of drives os-prober-udeb - utility to detect other OSes on a set of drives (udeb) Closes: 648208 674561 698598 698733 701814 776275 784709 787418 794409 801631 803155 Changes: os-prober (1.72) unstable; urgency=medium . * Improve logging of mounting and setting partitions to ro/rw (thanks, Ivo De Decker). * Use a read-only device-mapper entry if possible rather than setting the underlying device to read-only (thanks, Ivo De Decker; closes: #701814). Note that this introduces a dependency on dmsetup on Linux architectures. * Remove the "blockdev --setro" code path entirely, since the read-only device-mapper arrangement supersedes it and should be safer (closes: #648208). * Make os-prober-udeb depend on grub-mount-udeb on all Linux and kFreeBSD architectures, now that it's available on them all (thanks, James Cowgill; closes: #776275). * Make os-prober depend on grub-common on Linux and kFreeBSD, in order that grub-mount is consistently available. * Fix detection of /usr/ partition as a GNU/Linux root partition when /lib* directories are moved to /usr/ completely (thanks, Hedayat Vatankhah; closes: #698733). * Make the yaboot parser more tolerant about the syntax of "append" options (thanks, Hedayat Vatankhah; closes: #674561). * Disable debugging if OS_PROBER_DISABLE_DEBUG is set (thanks, Hedayat Vatankhah; closes: #698598). * Replace basename/dirname with shell string processing (thanks, Hedayat Vatankhah; part of #694668). * Call dmraid only once (thanks, Jeff Mahoney). * Fix typos in README (thanks, Nyav; closes: #803155). * Add os-release support (based loosely on a patch by Török Edwin; closes: #794409). * Add Devuan detection (thanks, David Hare; closes: #801631). * Work harder to avoid trying to mount extended partitions (thanks, Philippe Coval; closes: #784709). * Drop " (loader)" suffixes on Microsoft operating systems (thanks, Chris Lamb; closes: #787418). Checksums-Sha1: 8438248e4fbc40749b85e37c16cf433db51b3cff 1816 os-prober_1.72.dsc c7b3b51719328b7cf0258561f4ee9c08f9a21d79 26452 os-prober_1.72.tar.xz Checksums-Sha256: f79975ddbd06ed371c3f27a781d423b2d88af6cc04896946f8df03fa42915f70 1816 os-prober_1.72.dsc 13ed24f78e83f0c49e11635891458f067e6c8348be210adda46629dd3b7b627a 26452 os-prober_1.72.tar.xz Files: 90ced5506beca6dc949347ab30f6e174 1816 debian-installer optional os-prober_1.72.dsc 16ce39ea58a684f102dd7aff1779cbf5 26452 debian-installer optional os-prober_1.72.tar.xz -----BEGIN PGP SIGNATURE----- Comment: Colin Watson <[email protected]> -- Debian developer iQIzBAEBCAAdFiEErApP8SYRtvzPAcEROTWH2X2GUAsFAliCBlMACgkQOTWH2X2G UAuXBw/+J+SAw+8es7Ca2xByEwor4P28IqkoU5uiBZ2zYo4xs727tAo6CVX0yw7Z ctRSJhOpKF1/FtiIUNq+6E6ZKKRzqEder4S7fRI92e7FXbW0yn5unUz84EvVrcI1 5V/rhEe3y8IrXEgVWMJoY+Vg5/sQWRMHap7HamC0Zj+9zlGmjZkc01gJRr0hTvw/ ApCUhZncVSlqXb7zgjU74HVX3+YHzJaOsZY4XyhVjmEnWlY8U0pNffCnzuxJDTuY gMDqC9AQmKyA3bhmzgi5DSh+5r6j2nwvYV9a3+xgJZvu0mv6Ng+UNd3p+uS+7BFU 8KdPy3Cnd0Xv/DkMKYdU5sOoFzsDwXF0sxJtlBpJyMFt9ZAnpRz7oxIS7D76HzYI msUVsvnBLaldkdTKpn9BlhxGVCH1iIlwN6w3aCW/fBNjuA9VBJyEdzzhCuaAfXZC fYwryq2gXgeowwdvH6rQcu04C7AHWiXulsl9yV1be8OlbRk8yc+CF08Ma7ABAweI ToYXEupEfdWEkKyQPaGtgoowUquX6cmYKeKBn5E6N2AVgU+yT10JbWeg6VLzlkKe p3UD6+iFKjfdKCjM9iy9aoyGjDGCy35lqb824R+nAZsGsJmkEMgRFgTMqYtgCOkU Jtp0pdbat3CXTQn50nbICF77jOzcFM4p2sO3yVOI0sFOa0mitMY= =lgmu -----END PGP SIGNATURE-----
--- End Message ---

