-
-
Save henrik-muehe/6155333 to your computer and use it in GitHub Desktop.
... | |
# Fake a fuse install | |
RUN apt-get install libfuse2 | |
RUN cd /tmp ; apt-get download fuse | |
RUN cd /tmp ; dpkg-deb -x fuse_* . | |
RUN cd /tmp ; dpkg-deb -e fuse_* | |
RUN cd /tmp ; rm fuse_*.deb | |
RUN cd /tmp ; echo -en '#!/bin/bash\nexit 0\n' > DEBIAN/postinst | |
RUN cd /tmp ; dpkg-deb -b . /fuse.deb | |
RUN cd /tmp ; dpkg -i /fuse.deb | |
... |
Cool stuff, I had to add -y
and --force-yes
options to apt-get
in order to get this working.
+1 Saved me a ton of tail chasing
I was getting so pissed, this works so well. I had to add -y though. Thanks for this..
@htulipe you can use -yy
instead :)
Henrik, any chance you could put a license on this? I know, sorry.
EDIT: nevermind.
+1. Thank you
Running dpkg-deb -x in /tmp changes the directory permissions on /tmp from the default 777 to 755. This caused an issue for me running java as a non-root user since java.io.tmpdir defaults to /tmp, which is no longer writable. Creating /tmp/fuse and doing the work in there appears to have fixed the problem for me.
+1. Thank you
that throws an error in Ubuntu Xenial:
/var/lib/dpkg/info/fuse.postinst: 1: /var/lib/dpkg/info/fuse.postinst: -en: not found
echo '#!/bin/bash\nexit 0\n' -en> DEBIAN/postinst &&
Did you have to use modprobe fuse for it to work?
+1 was really useful