<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="https://dev1galaxy.org/extern.php?action=feed&amp;tid=1514&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / Updating os-prober, need info from other popular linux distros! Help!]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=1514</link>
		<description><![CDATA[The most recent posts in Updating os-prober, need info from other popular linux distros! Help!.]]></description>
		<lastBuildDate>Sun, 06 Aug 2017 01:03:55 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: Updating os-prober, need info from other popular linux distros! Help!]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=4195#p4195</link>
			<description><![CDATA[<div class="quotebox"><cite>greenjeans wrote:</cite><blockquote><div><p>So as long as a distro provides an lsb release , grub should pick it up without any further code correct?</p></div></blockquote></div><p>Yes.</p>]]></description>
			<author><![CDATA[dummy@example.com (fsmithred)]]></author>
			<pubDate>Sun, 06 Aug 2017 01:03:55 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=4195#p4195</guid>
		</item>
		<item>
			<title><![CDATA[Re: Updating os-prober, need info from other popular linux distros! Help!]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=4191#p4191</link>
			<description><![CDATA[<div class="quotebox"><cite>fsmithred wrote:</cite><blockquote><div><p>Devuan does use /etc/os-release, but grub doesn&#039;t seem to check for that. (I grepped through all of /usr/lib/os-probes/mounted/ and /usr/lib/linux-boot-probes/ and couldn&#039;t find it.)</p></div></blockquote></div><p>Yep, you have to manually add the lines to 90linux, but after that it picks it right up when you update-grub.</p><p>So as long as a distro provides an lsb release , grub should pick it up without any further code correct?</p>]]></description>
			<author><![CDATA[dummy@example.com (greenjeans)]]></author>
			<pubDate>Fri, 04 Aug 2017 22:26:03 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=4191#p4191</guid>
		</item>
		<item>
			<title><![CDATA[Re: Updating os-prober, need info from other popular linux distros! Help!]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=4183#p4183</link>
			<description><![CDATA[<p>No, there&#039;s no /etc/lsb-release file in devuan. You recall correctly - I had to make it myself. Ubuntu does have /etc/lsb-release, and 40lsb runs before 90linux. Devuan does use /etc/os-release, but grub doesn&#039;t seem to check for that. (I grepped through all of /usr/lib/os-probes/mounted/ and /usr/lib/linux-boot-probes/ and couldn&#039;t find it.)</p>]]></description>
			<author><![CDATA[dummy@example.com (fsmithred)]]></author>
			<pubDate>Fri, 04 Aug 2017 12:05:12 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=4183#p4183</guid>
		</item>
		<item>
			<title><![CDATA[Re: Updating os-prober, need info from other popular linux distros! Help!]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=4171#p4171</link>
			<description><![CDATA[<div class="quotebox"><cite>fsmithred wrote:</cite><blockquote><div><p>Current Refracta isos have /etc/devuan_version, but grub uses /etc/lsb-release instead, so it shows up as Refracta (or maybe Refracted Devuan). Ubunutu isos have /etc/debian_version, but I&#039;m pretty sure it always shows up as Ubuntu in the grub menu (if you can find it.)</p></div></blockquote></div><p>I actually haven&#039;t tried the default Devuan 1.0 iso, is there an /etc/lsb-release file in it now? I seem to remember you saying had to make one for Refracta...</p>]]></description>
			<author><![CDATA[dummy@example.com (greenjeans)]]></author>
			<pubDate>Thu, 03 Aug 2017 22:38:32 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=4171#p4171</guid>
		</item>
		<item>
			<title><![CDATA[Re: Updating os-prober, need info from other popular linux distros! Help!]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=4170#p4170</link>
			<description><![CDATA[<div class="quotebox"><cite>Geoff 42 wrote:</cite><blockquote><div><p>If you are using if elif will that mean that if you have both debian_vesion and devuan_version that you will only pick up Debian and miss the fact that it has been upgraded to Devuan?</p><p>Geoff</p></div></blockquote></div><p>That bit of code would select for whichever of the two got tested first. But that doesn&#039;t necessarily mean that you&#039;d get that name in your grub menu. There are other tests that grub does to figure out which distro you have. And if I remember correctly, there&#039;s a reference to black magic somewhere in the comments in the script.</p><p>Current Refracta isos have /etc/devuan_version, but grub uses /etc/lsb-release instead, so it shows up as Refracta (or maybe Refracted Devuan). Ubunutu isos have /etc/debian_version, but I&#039;m pretty sure it always shows up as Ubuntu in the grub menu (if you can find it.)</p>]]></description>
			<author><![CDATA[dummy@example.com (fsmithred)]]></author>
			<pubDate>Thu, 03 Aug 2017 22:02:47 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=4170#p4170</guid>
		</item>
		<item>
			<title><![CDATA[Re: Updating os-prober, need info from other popular linux distros! Help!]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=4163#p4163</link>
			<description><![CDATA[<p>If you are using if elif will that mean that if you have both debian_vesion and devuan_version that you will only pick up Debian and miss the fact that it has been upgraded to Devuan?</p><p>Geoff</p>]]></description>
			<author><![CDATA[dummy@example.com (Geoff 42)]]></author>
			<pubDate>Thu, 03 Aug 2017 08:39:41 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=4163#p4163</guid>
		</item>
		<item>
			<title><![CDATA[Updating os-prober, need info from other popular linux distros! Help!]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=4155#p4155</link>
			<description><![CDATA[<p>Okay, so one way or another i&#039;ll get the os-prober package&#039;s failure to recognize Devuan fixed, but I need help, I need people who have other modern linux distros like ubuntu or mint etc., I need the identifier for the os, usually in /etc.&#160; For instance Devuan&#039;s is /etc/devuan_version and Debian is /etc/debian_version, Arch is /etc/arch_release.</p><p>This portion of the package hasn&#039;t been really updated in years, it still had distros that have been gone since 2003.</p><p>Here&#039;s what I have so far just adding Devuan (and Vuu-do, lol) and getting rid of the old discontinued ones:</p><div class="codebox"><pre class="vscroll"><code>#!/bin/sh
# Test for linux distributions.
set -e

. /usr/share/os-prober/common.sh

partition=&quot;$1&quot;
dir=&quot;$2&quot;
type=&quot;$3&quot;

# This test is inaccurate, but given separate / and /boot partitions and the
# fact that only some architectures have ld-linux.so, I can&#039;t see anything
# better. Make sure this test has a high number so that more accurate tests
# can come first.
# Unless volumes to checked are already mounted, they will be mounted using
# GRUB&#039;s own filesystems through FUSE. Since these ATM doesn&#039;t support
# 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 &quot;$dir&quot;/lib*/ld*.so* || ls &quot;$dir&quot;/usr/lib*/ld*.so*) &gt;/dev/null 2&gt;/dev/null; then
	if [ -e &quot;$dir/etc/debian_version&quot; ]; then
		short=&quot;Debian&quot;
		long=&quot;$(printf &quot;Debian GNU/Linux (%s)\n&quot; &quot;$(cat &quot;$dir/etc/debian_version&quot;)&quot;)&quot;
	# RPM derived distributions may also have a redhat-release or
	# mandrake-release, so check their files first.

        elif [ -e &quot;$dir/etc/devuan_version&quot; ]; then
                short=&quot;Devuan&quot;
                long=&quot;$(printf &quot;Devuan GNU/Linux (%s)\n&quot; &quot;$(cat &quot;$dir/etc/devuan_version&quot;)&quot;)&quot;
        elif [ -e &quot;$dir/etc/vuudo_version&quot; ]; then
                short=&quot;Vuu-do&quot;
                long=&quot;$(printf &quot;Vuu-do GNU/Linux (%s)\n&quot; &quot;$(cat &quot;$dir/etc/vuudo_version&quot;)&quot;)&quot;
	elif [ -e &quot;$dir/etc/altlinux-release&quot; ]; then
		short=&quot;ALTLinux&quot;
		long=&quot;$(cat &quot;$dir/etc/altlinux-release&quot;)&quot;
	elif [ -e &quot;$dir/etc/magic-release&quot; ]; then
		short=&quot;Magic&quot;
		long=&quot;$(cat &quot;$dir/etc/magic-release&quot;)&quot;
	elif [ -e &quot;$dir/etc/blackPanther-release&quot; ]; then
		short=&quot;blackPanther&quot;
		long=&quot;$(cat &quot;$dir/etc/blackPanther-release&quot;)&quot;
	elif [ -e &quot;$dir/etc/ark-release&quot; ]; then
		short=&quot;Ark&quot;
		long=&quot;$(cat &quot;$dir/etc/ark-release&quot;)&quot;
	elif [ -e &quot;$dir/etc/arch-release&quot; ]; then
		short=&quot;Arch&quot;
		long=&quot;$(cat &quot;$dir/etc/arch-release&quot;)&quot;
	elif [ -e &quot;$dir/etc/vine-release&quot; ]; then
		short=&quot;Vine&quot;
		long=&quot;$(cat &quot;$dir/etc/vine-release&quot;)&quot;
	elif [ -e &quot;$dir/etc/pld-release&quot; ]; then
		short=&quot;PLD&quot;
		long=&quot;$(cat &quot;$dir/etc/pld-release&quot;)&quot;
	elif [ -e &quot;$dir/etc/fedora-release&quot; ]; then
		short=&quot;Fedora&quot;
		long=&quot;$(cat &quot;$dir/etc/fedora-release&quot;)&quot;
	elif [ -e &quot;$dir/etc/redhat-release&quot; ]; then
		short=&quot;RedHat&quot;
		long=&quot;$(cat &quot;$dir/etc/redhat-release&quot;)&quot;
	elif [ -e &quot;$dir/etc/SuSE-release&quot; ]; then
		short=&quot;SuSE&quot;
		long=&quot;$(head -n 1 &quot;$dir/etc/SuSE-release&quot;)&quot;
	elif [ -e &quot;$dir/etc/gentoo-release&quot; ]; then
		short=&quot;Gentoo&quot;
		long=&quot;$(cat &quot;$dir/etc/gentoo-release&quot;)&quot;
	elif [ -e &quot;$dir/etc/turbolinux-release&quot; ]; then
		short=&quot;Turbolinux&quot;
		long=&quot;$(cat &quot;$dir/etc/turbolinux-release&quot;)&quot;
	elif [ -e &quot;$dir/etc/pardus-release&quot; ]; then
		short=&quot;Pardus&quot;
		long=&quot;$(cat &quot;$dir/etc/pardus-release&quot;)&quot;
	elif [ -e &quot;$dir/etc/kanotix-version&quot; ]; then
		short=&quot;Kanotix&quot;
		long=&quot;$(cat &quot;$dir/etc/kanotix-version&quot;)&quot;
	elif [ -e &quot;$dir/etc/slackware-version&quot; ]; then
		short=&quot;Slackware&quot;
		long=&quot;$(printf &quot;Slackware Linux (%s)\n&quot; &quot;$(cat &quot;$dir/etc/slackware-version&quot;)&quot;)&quot;
	elif [ -e &quot;$dir/sbin/pkgtool&quot; ]; then
		short=&quot;Slackware&quot;
		long=&quot;Slackware Linux&quot;
	elif [ -e &quot;$dir/etc/frugalware-release&quot; ]; then
		short=&quot;Frugalware Linux&quot;
		long=&quot;$(cat &quot;$dir/etc/frugalware-release&quot;)&quot;
	elif [ -e &quot;$dir/etc/lfs-release&quot; ]; then
		short=&quot;LFS&quot;
		long=&quot;$(printf &quot;Linux From Scratch (%s)\n&quot; &quot;$(cat &quot;$dir/etc/lfs-release&quot;)&quot;)&quot;
	else
		short=&quot;Linux&quot;
		long=&quot;unknown Linux distribution&quot;
	fi
	
        label=&quot;$(count_next_label &quot;$short&quot;)&quot;
	result &quot;$partition:$long:$label:linux&quot;
	exit 0
else
	exit 1
fi</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (greenjeans)]]></author>
			<pubDate>Wed, 02 Aug 2017 21:57:50 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=4155#p4155</guid>
		</item>
	</channel>
</rss>
