Created
August 5, 2013 11:47
-
-
Save henrik-muehe/6155333 to your computer and use it in GitHub Desktop.
Allows installing the ubuntu "fuse" package without creating any devices. Used to install packages on docker which require fuse but do not actively use it.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
# 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 | |
... |
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?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
+1. Thank you