TJ [Sat, 16 Dec 2017 11:09:53 +0000 (11:09 +0000)]
linux-boot-probe: mounted/40grub2 add tests for handling escaped $ " \
TJ [Thu, 14 Dec 2017 19:52:27 +0000 (19:52 +0000)]
linux-boot-probe: fix mounted/40grub2 menuentry parsing
TJ [Thu, 14 Dec 2017 19:51:21 +0000 (19:51 +0000)]
Test files for reworked mounted/40grub2 menuentry parsing
Christian Perrier [Wed, 28 Jun 2017 05:28:03 +0000 (07:28 +0200)]
releasing package os-prober version 1.76
Cyril Brulebois [Sat, 24 Jun 2017 17:48:17 +0000 (19:48 +0200)]
Fix check on ID_PART_ENTRY_SCHEME, to look for "dos" instead of "msdos" (Closes: #817023).
This was tracked down from udevadm (systemd) to the blkid_partition_get_table
function in util-linux, libblkid/src/partitions/dos.c is indeed about "dos"
rather than "msdos".
Ivo De Decker [Mon, 1 May 2017 07:56:14 +0000 (09:56 +0200)]
releasing os-prober 1.75 to unstable
Ivo De Decker [Sun, 30 Apr 2017 12:46:24 +0000 (14:46 +0200)]
Remove code using device mapper.
(Closes: #860833, #853927, #853163)
This code doesn't work in d-i and it has some issues outside d-i. All
architectures can use the grub-mount codepath, which was already the
default anyway.
This also removes the dependency on dmsetup.
Signed-off-by: Ivo De Decker <ivodd@debian.org>
Cyril Brulebois [Tue, 31 Jan 2017 23:01:26 +0000 (00:01 +0100)]
releasing version 1.74
Cyril Brulebois [Tue, 31 Jan 2017 23:01:14 +0000 (00:01 +0100)]
Skip LVM2_member partitions (Closes: #853277).
Christian Perrier [Sat, 21 Jan 2017 07:54:35 +0000 (08:54 +0100)]
releasing package os-prober version 1.73
Cyril Brulebois [Fri, 20 Jan 2017 15:34:25 +0000 (16:34 +0100)]
Add support for Mageia, thanks to Neal Gompa (Closes: #851983).
Colin Watson [Fri, 20 Jan 2017 12:46:01 +0000 (12:46 +0000)]
releasing package os-prober version 1.72
Chris Lamb [Fri, 20 Jan 2017 12:39:14 +0000 (12:39 +0000)]
Drop " (loader)" suffixes on Microsoft OSes
Closes: #787418
Philippe Coval [Fri, 20 Jan 2017 12:25:24 +0000 (12:25 +0000)]
Use lsblk to attempt to guess partition's fs type
If not found it will fall back to other tools.
Note that fs_type function is not expected to return a non-zero error
code even if it failed to detect the type.
If filesystem is undetermined then "NOT-DETECTED" will be echoed.
This change will prevent mount hanging on extended partitions (#768902).
Signed-off-by: Philippe Coval <rzr@gna.org>
Tweaked-by: Colin Watson <cjwatson@debian.org>
Bug-Debian: 768902
David Hare [Fri, 20 Jan 2017 12:13:35 +0000 (12:13 +0000)]
Add Devuan detection
Closes: #801631
Colin Watson [Fri, 20 Jan 2017 02:02:06 +0000 (02:02 +0000)]
Add os-release support
Based loosely on a patch by Török Edwin.
Closes: #794409
Nyav [Thu, 19 Jan 2017 21:50:58 +0000 (21:50 +0000)]
Fix typos in README
Closes: #803155
Jeff Mahoney [Thu, 19 Jan 2017 21:43:11 +0000 (21:43 +0000)]
os-prober: call dmraid -r *once*
os-prober calls dmraid -r -c unqualifed for every partition and then greps
the result. dmraid -r -c without a device list will scan every device
on the system. Every time. The results will not differ between runs.
This patch saves the results and performs the grep afterward.
Signed-off-by: Jeff Mahoney <jeffm@suse.com>
Tweaked-by: Colin Watson <cjwatson@debian.org>
Colin Watson [Thu, 19 Jan 2017 21:22:22 +0000 (21:22 +0000)]
Optimise basename/dirname operations
Replace basename/dirname with shell string processing (thanks, Hedayat
Vatankhah; part of #694668).
Colin Watson [Thu, 19 Jan 2017 21:16:33 +0000 (21:16 +0000)]
Allow disabling debug output
Disable debugging if OS_PROBER_DISABLE_DEBUG is set (thanks, Hedayat
Vatankhah; closes: #698598).
Colin Watson [Thu, 19 Jan 2017 21:12:14 +0000 (21:12 +0000)]
Tolerate different spellings of yaboot append
Make the yaboot parser more tolerant about the syntax of "append"
options (thanks, Hedayat Vatankhah; closes: #674561).
Hedayat Vatankhah [Wed, 18 Jan 2017 16:46:26 +0000 (16:46 +0000)]
Fix misdetection of /usr/ as root partition
... when /lib* directories are moved to /usr/ completely.
Closes: #698733
Colin Watson [Wed, 18 Jan 2017 16:40:06 +0000 (16:40 +0000)]
Depend on grub-common
Make os-prober depend on grub-common on Linux and kFreeBSD, in order that
grub-mount is consistently available.
Colin Watson [Wed, 18 Jan 2017 16:23:53 +0000 (16:23 +0000)]
Widen grub-mount-udeb architecture restriction
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).
Colin Watson [Wed, 18 Jan 2017 16:17:40 +0000 (16:17 +0000)]
Remove "blockdev --setro" code path
Remove the "blockdev --setro" code path entirely, since the read-only
device-mapper arrangement supersedes it and should be safer
(closes: #648208).
Colin Watson [Wed, 18 Jan 2017 12:18:54 +0000 (12:18 +0000)]
Refactor dmsetup handling
Move common code into a do_dmsetup function, and use it from
linux_mount_boot as well.
Colin Watson [Sat, 31 Dec 2016 17:12:13 +0000 (17:12 +0000)]
Add changelog for Ivo's changes, as amended by me
Ivo De Decker [Sat, 13 Jul 2013 19:15:41 +0000 (21:15 +0200)]
using read-only device mapper entry
Ivo De Decker [Sun, 14 Jul 2013 11:26:43 +0000 (13:26 +0200)]
log result from mount command
Ivo De Decker [Sat, 13 Jul 2013 19:13:05 +0000 (21:13 +0200)]
cleanup in separate function do_unmount
Ivo De Decker [Sat, 13 Jul 2013 19:17:54 +0000 (21:17 +0200)]
log when partition set to ro/rw
Christian Perrier [Sun, 31 Jan 2016 17:38:40 +0000 (18:38 +0100)]
releasing package os-prober version 1.71
Colin Watson [Fri, 29 Jan 2016 14:14:29 +0000 (14:14 +0000)]
Use HTTPS for Vcs-* URLs, and link to cgit rather than gitweb.
Cyril Brulebois [Wed, 9 Dec 2015 19:33:10 +0000 (20:33 +0100)]
Fix typo.
Cyril Brulebois [Wed, 25 Nov 2015 20:44:53 +0000 (21:44 +0100)]
Add support for 4MLinux, thanks to Zbigniew Konojacki.
Christian Perrier [Tue, 27 Oct 2015 06:04:42 +0000 (07:04 +0100)]
releasing package os-prober version 1.70
Samuel Thibault [Sat, 17 Oct 2015 12:27:40 +0000 (14:27 +0200)]
Fix hurd-any support
Test for /servers instead of /servers/exec to avoid starting an translator
in the mounted system. Also, /hurd/init might be phased out at some point
(Closes: #802053).
Cyril Brulebois [Thu, 8 Oct 2015 12:26:29 +0000 (14:26 +0200)]
releasing version 1.68
Cyril Brulebois [Thu, 8 Oct 2015 12:25:56 +0000 (14:25 +0200)]
Add support for Windows 10 (Closes: #801278).
It was previously reported as Windows Recovery Environment.
Thanks, Philipp Wolfer!
Andreas Henriksson [Thu, 8 Oct 2015 00:29:46 +0000 (02:29 +0200)]
Adjust extended dos support for blkid/util-linux 2.24+ (Closes: #735169).
Signed-off-by: Cyril Brulebois <kibi@debian.org>
Christian Perrier [Wed, 30 Sep 2015 18:17:19 +0000 (20:17 +0200)]
releasing package os-prober version 1.67
Samuel Thibault [Mon, 28 Sep 2015 23:39:16 +0000 (01:39 +0200)]
close bug
James Clarke [Thu, 24 Sep 2015 17:22:21 +0000 (18:22 +0100)]
Support probing on hurd-any
James Clarke [Thu, 24 Sep 2015 17:22:20 +0000 (18:22 +0100)]
Use DEB_HOST_ARCH_CPU instead of DEB_HOST_ARCH
and thus treat *-{i386,amd64} as x86
Cyril Brulebois [Thu, 9 Jul 2015 23:34:31 +0000 (01:34 +0200)]
releasing version 1.66
Cyril Brulebois [Thu, 9 Jul 2015 22:59:38 +0000 (00:59 +0200)]
Add -a flag to grep -qs for Windows Vista detection (Closes: #791383).
It appears the file isn't always considered as a text file, so this should be
more robust. Thanks to Gianluigi Tiesi for the report and the suggestion.
Steve McIntyre [Tue, 25 Nov 2014 17:42:05 +0000 (17:42 +0000)]
Release 1.65
Steve McIntyre [Wed, 1 Oct 2014 23:05:15 +0000 (00:05 +0100)]
Recognise the new ignore_uefi flag from partman-efi
Joey Hess [Fri, 7 Nov 2014 21:38:11 +0000 (17:38 -0400)]
removed myself from Uploaders
Aurelien Jarno [Sun, 17 Aug 2014 21:37:24 +0000 (23:37 +0200)]
releasing package os-prober version 1.64
Aurelien Jarno [Sun, 17 Aug 2014 21:36:48 +0000 (23:36 +0200)]
Add ppc64el support. Closes: #752416.
Christian Perrier [Tue, 23 Jul 2013 12:16:52 +0000 (14:16 +0200)]
releasing version 1.63
Cyril Brulebois [Mon, 22 Jul 2013 01:56:04 +0000 (03:56 +0200)]
Drop reiserfs, it's no longer supported.
Christian Perrier [Tue, 16 Jul 2013 09:21:37 +0000 (11:21 +0200)]
releasing version 1.62
Christian Perrier [Sat, 13 Jul 2013 12:04:48 +0000 (14:04 +0200)]
Update Standards to 3.9.4 (checked)
Dmitrijs Ledkovs [Fri, 7 Jun 2013 00:01:42 +0000 (01:01 +0100)]
Mass-commit packaging changes. http://deb.li/qxqh
Colin Watson [Tue, 21 May 2013 22:01:54 +0000 (23:01 +0100)]
releasing version 1.61
Colin Watson [Tue, 21 May 2013 21:42:35 +0000 (22:42 +0100)]
Add an extra backslash to the code in parse_proc_mdstat to remove [...], so that it works properly in dash (thanks, John Ryan; LP: #905607).
Colin Watson [Fri, 17 May 2013 12:14:05 +0000 (13:14 +0100)]
releasing version 1.60
Colin Watson [Fri, 17 May 2013 12:02:35 +0000 (13:02 +0100)]
os-probes/mounted/x86/05efi: Handle the case where we used grub-mount to mount the EFI System Partition.
Christian Perrier [Wed, 15 May 2013 15:48:02 +0000 (17:48 +0200)]
releasing version 1.59
Colin Watson [Tue, 14 May 2013 20:07:12 +0000 (21:07 +0100)]
Merge branch 'jessie'
Conflicts:
debian/changelog
debian/control
Steve McIntyre [Sun, 28 Apr 2013 15:02:26 +0000 (16:02 +0100)]
Releasing version 1.58
Also add Steve McIntyre to uploaders.
Steve McIntyre [Thu, 25 Apr 2013 14:30:14 +0000 (15:30 +0100)]
Add UEFI support to os-prober
patch from Andrey Borzenkov:
+ skip legacy MS loader detection on UEFI platform
+ add framework for searching EFI System Partition
+ add scripts that detect Microsoft bootloader and ELILO.
Colin Watson [Wed, 9 Jan 2013 12:46:31 +0000 (12:46 +0000)]
Fix cross-building and use dpkg-buildflags.
Christian Perrier [Sat, 22 Dec 2012 14:12:22 +0000 (15:12 +0100)]
releasing version 1.57
Joey Hess [Mon, 26 Nov 2012 16:19:16 +0000 (12:19 -0400)]
Fix detection of Fedora and other distros that moved /lib into /usr and left behind a symlink. Grub's filesystem code does not support symlinks. Closes: #685159 Thanks Andreas Bombe for the patch.
Christian PERRIER [Sat, 3 Nov 2012 16:59:21 +0000 (17:59 +0100)]
Deal with grub-probe exiting with non zero status on some devices, which in turns can stuck update-grub Closes: #680084
Colin Watson [Mon, 17 Sep 2012 18:05:11 +0000 (19:05 +0100)]
releasing version 1.56
Colin Watson [Mon, 17 Sep 2012 17:48:40 +0000 (18:48 +0100)]
Fix the parsing code in the grub2 handler so that it no longer gets hopelessly confused by multiple single-quoted strings on the same line, as produced by GRUB 2.00.
Colin Watson [Mon, 17 Sep 2012 15:17:22 +0000 (16:17 +0100)]
Add support for probing Fedora's location for the GRUB 2 configuration file (closes: #674560).
Christian Perrier [Sat, 25 Aug 2012 08:03:43 +0000 (10:03 +0200)]
releasing version 1.55
Christian Perrier [Sat, 25 Aug 2012 07:58:45 +0000 (09:58 +0200)]
Add myself to Uploaders
Christian PERRIER [Sat, 18 Aug 2012 15:52:59 +0000 (17:52 +0200)]
Improve detection of Haiku: detect the 64-bit version Closes: #685228
Christian Perrier [Sat, 7 Jul 2012 19:29:14 +0000 (21:29 +0200)]
releasing version 1.54
Joey Hess [Sat, 19 May 2012 19:02:47 +0000 (15:02 -0400)]
Avoid noise when /proc/swaps does not exist. Closes: #673566
Christian Perrier [Tue, 8 May 2012 07:49:36 +0000 (09:49 +0200)]
releasing version 1.53
Christian Perrier [Mon, 7 May 2012 20:32:34 +0000 (22:32 +0200)]
Add ${misc:Depends} to udeb dependencies
Christian Perrier [Mon, 7 May 2012 20:25:58 +0000 (22:25 +0200)]
Link to explicit GPL-2 document in debian/copyright
Christian Perrier [Mon, 7 May 2012 20:24:19 +0000 (22:24 +0200)]
Use Package-Type instead of deprecated XC-Package-Type for os-prober-udeb
Christian Perrier [Mon, 7 May 2012 20:23:15 +0000 (22:23 +0200)]
Next upload is a team upload
Christian Perrier [Mon, 7 May 2012 20:13:19 +0000 (22:13 +0200)]
sed off (hdn,n) from the front of an initrd path, as seen in Mandriva/Mageia grub configs. Thanks to François Jaouen and Barry Jackson for the patch Closes: #566102
Joey Hess [Fri, 20 Apr 2012 14:53:55 +0000 (10:53 -0400)]
releasing version 1.52
Joey Hess [Fri, 20 Apr 2012 14:50:32 +0000 (10:50 -0400)]
Revert broken patch adding support for BSD distributions. Closes: #668860
Note that this reverts some fixes Colin made to the files distributed
in #668860, which should be kept if anyone resuscitates this patch again.
Colin Watson [Thu, 5 Apr 2012 10:34:35 +0000 (11:34 +0100)]
Install README and TODO in the .deb.
Colin Watson [Thu, 5 Apr 2012 08:24:32 +0000 (09:24 +0100)]
Add support for Windows 8.
Colin Watson [Tue, 27 Mar 2012 14:53:05 +0000 (15:53 +0100)]
releasing version 1.51
Colin Watson [Tue, 27 Mar 2012 14:46:12 +0000 (15:46 +0100)]
Use 'type' rather than 'which' to test for grub-mount, as d-i doesn't have 'which'. Also test for grub-probe before using it, as that isn't currently in grub-mount-udeb and I'm going to need to add it (LP: #963471).
Joey Hess [Thu, 15 Mar 2012 17:47:49 +0000 (13:47 -0400)]
Relax the MS-DOS detection again now that it will not cause false positives for non-FAT filesystems.
Colin Watson [Thu, 15 Mar 2012 13:58:38 +0000 (13:58 +0000)]
releasing version 1.50
Colin Watson [Thu, 15 Mar 2012 13:52:14 +0000 (13:52 +0000)]
close #663600 too
Colin Watson [Thu, 15 Mar 2012 12:26:14 +0000 (12:26 +0000)]
When using grub-mount, pass the GRUB filesystem type to individual tests rather than "fuseblk". Adjust a number of tests to handle GRUB filesystem names as well as OS names (closes: #663540).
Joey Hess [Mon, 12 Mar 2012 15:31:07 +0000 (11:31 -0400)]
Avoid false positives in MS-DOS detection by also looking for autoexec.bat. Closes: #663540
/dos is not an unheard of directory to have on a linux system -- we used
to put our dual-boot mount point there in 1995 -- and when mounted by
grub-mount, the filesystem type is not available to limit detection of
MS-DOS to only relevant filesystems.
Work around this problem by also requiring an /autoexec.bat or a
/config.sys. While not all MS-DOS systems have one of these files,
any MS-DOS system that a user is likely to care about showing up
in their boot menu probably does.
(IIRC not all MS-DOS systems even have a /dos!)
I also took a brief look at the other tests that allows fuse mount through.
Many of them, like 83haiku check for enough different items that the
chances of a false positive are very low even absent a filesystem type
confirmation. The most worrying are 20macosx, which only checks for
/mach_kernel, and 30utility, which only checks for /f11.sys.
Those should probably be tightened down, or a way found to check the actual
filesystem type when using grub-mount.
Otavio Salvador [Fri, 24 Feb 2012 01:11:11 +0000 (23:11 -0200)]
Add support to detect BSD systems. Thanks to Gavrilin Andrey <gaal.dev@gmail.com> for the patch (refs: #659208).
Otavio Salvador [Fri, 16 Dec 2011 18:10:59 +0000 (16:10 -0200)]
Update changelog
Otavio Salvador [Fri, 16 Dec 2011 18:04:28 +0000 (16:04 -0200)]
Add myself as OK with relicense code as GPLv2+
Christian PERRIER [Wed, 14 Dec 2011 19:25:27 +0000 (20:25 +0100)]
Add myself to the list of people OK with gpl2+ relicensing
Joey Hess [Tue, 13 Dec 2011 21:56:44 +0000 (17:56 -0400)]
Clarify license version is GPL-2+, for all code written by Joey Hess, Colin
Watson, and Joshua Kwan. The license had just been "GNU GPL"; other
contributors to os-prober are encouraged to clarify which GPL versions
apply to their code.
Colin Watson [Mon, 29 Aug 2011 11:36:25 +0000 (12:36 +0100)]
releasing version 1.49
Colin Watson [Mon, 29 Aug 2011 11:30:26 +0000 (12:30 +0100)]
Restrict grub-mount-udeb dependency to architectures where grub-mount-udeb exists (closes: #639599).