<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to bugs</title><link href="https://sourceforge.net/p/bsdadminscripts/bugs/" rel="alternate"/><link href="https://sourceforge.net/p/bsdadminscripts/bugs/feed.atom" rel="self"/><id>https://sourceforge.net/p/bsdadminscripts/bugs/</id><updated>2012-02-07T09:03:13Z</updated><subtitle>Recent changes to bugs</subtitle><entry><title>pkg_upgrade fails to retrieve INDEX for FreeBSD-9.0-RELEASE</title><link href="https://sourceforge.net/p/bsdadminscripts/bugs/2/" rel="alternate"/><published>2012-02-07T09:03:13Z</published><updated>2012-02-07T09:03:13Z</updated><author><name>Alvin Poon</name><uri>https://sourceforge.net/u/aspoon/</uri></author><id>https://sourceforge.net9561f4529770fd3fec701eca8ed59b5c586d578e</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;# pkg_upgrade -aC&lt;br /&gt;
fetch: ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-9-release/INDEX:&lt;br /&gt;
File unavailable (e.g., file not found, no access)&lt;br /&gt;
#&lt;/p&gt;
&lt;p&gt;It appears to be a problem with the name "packages-9-release", as the&lt;br /&gt;
folder available on FTP is actually "packages-9.0-release". (note the&lt;br /&gt;
.0 in the version) Once the system switches to stable releases such&lt;br /&gt;
as "packages-9-stable" it should work fine. (as packages-9-stable is&lt;br /&gt;
available on FTP)&lt;/p&gt;
&lt;p&gt;The problem is found in /usr/local/sbin/uma, line 76 onwards:&lt;/p&gt;
&lt;p&gt;71 # Logic from src/usr.sbin/pkg_install/add/main.c, plus the&lt;br /&gt;
possibility to&lt;br /&gt;
72 # override the architecture with ARCH.&lt;br /&gt;
73 : ${PACKAGEROOT="ftp://ftp.freebsd.org"}&lt;br /&gt;
74 : ${ARCH="$(uname -m)"}&lt;br /&gt;
75 branch="$(uname -r | tr '[:upper:]' '[:lower:]')"&lt;br /&gt;
76 number="${branch%%.*}"&lt;br /&gt;
77 branch="${branch##*-}"&lt;br /&gt;
78 case "$branch" in&lt;br /&gt;
79 release)&lt;br /&gt;
80 branch=$number-$branch&lt;br /&gt;
81 ;;&lt;br /&gt;
82 stable|current)&lt;br /&gt;
83 branch=${number%%.*}-$branch&lt;br /&gt;
84 ;;&lt;br /&gt;
85 *)&lt;br /&gt;
86 # Fallback to stable for prerelease and the like.&lt;br /&gt;
87 branch=${number%%.*}-stable&lt;br /&gt;
88 ;;&lt;br /&gt;
89 esac&lt;/p&gt;
&lt;p&gt;It arbitrarily removed the .x minor version from the number. It&lt;br /&gt;
should have been "number=${branch%%-*}", since the minor version is&lt;br /&gt;
further stripped off in the following case statements depending on the&lt;br /&gt;
branch.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>probeDetect recursion</title><link href="https://sourceforge.net/p/bsdadminscripts/bugs/1/" rel="alternate"/><published>2010-10-06T17:27:10Z</published><updated>2010-10-06T17:27:10Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.netfaa8e1bc557f2070f7e0fbd7223ef684e3dcbdb8</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;sometimes partitioned device cause infinite recursion.&lt;br /&gt;
e.g.: when system tries to mount da0,&lt;br /&gt;
destroy event generated for da0s1, which triggers another update of automounter (and another probe of da0)&lt;/p&gt;
&lt;p&gt;patch included works at least for me.&lt;/p&gt;
&lt;p&gt;FreeBSD 8.1-STABLE #11 r213048&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>