Paul Tagliamonte <[email protected]> writes:

>
> This bug will just become remove contrib from the deb. I'm not willing
> to spend hours of my time patching contrib scripts. Anyone who finds
> them useful can do that on their own, sadly.
>

I think that /usr/share/docker.io/contrib/mkimage-debootstrap.sh may be
interesting though (it's the one I tried, which failed, but forgot to
add to my report).

Others might as well, depening how popular they are.

In any case, for mkimage-debootstrap.sh I think that the patch could be
quite easily made, along the attached lines.

Hope this helps.

Best regards,

--- /usr/share/docker.io/contrib/mkimage-debootstrap.sh	2014-02-05 01:08:57.000000000 +0100
+++ mkimage-debootstrap.sh	2014-03-05 17:14:25.566531185 +0100
@@ -87,7 +87,11 @@
 
 # some rudimentary detection for whether we need to "sudo" our docker calls
 docker=''
-if docker version > /dev/null 2>&1; then
+if docker.io version > /dev/null 2>&1; then
+	docker='docker.io'
+elif sudo docker.io version > /dev/null 2>&1; then
+	docker='sudo docker.io'
+elif docker version > /dev/null 2>&1; then
 	docker='docker'
 elif sudo docker version > /dev/null 2>&1; then
 	docker='sudo docker'
-- 
Olivier BERGER 
http://www-public.telecom-sudparis.eu/~berger_o/ - OpenPGP-Id: 2048R/5819D7E8
Ingenieur Recherche - Dept INF
Institut Mines-Telecom, Telecom SudParis, Evry (France)

Reply via email to