Void Container Guide: Corrections to install proprietary programs in directory /opt
This commit is contained in:
parent
4fd85c14bd
commit
e77a3c298f
2 changed files with 6 additions and 4 deletions
|
@ -11,9 +11,10 @@ Telegram
|
||||||
|
|
||||||
## Content
|
## Content
|
||||||
* [Introduction](#Introduction)
|
* [Introduction](#Introduction)
|
||||||
* [Creating the sandox (container)](#Creatin-the-sandbox-(container))
|
* [Creating the sandox (container)](#Creating-the-sandbox-(container))
|
||||||
* [Endnotes](#Endnotes)
|
* [Endnotes](#Endnotes)
|
||||||
* [Anexxes](#Anexxes)
|
* [Anexxes](#Anexxes)
|
||||||
|
* [References](#References)
|
||||||
-----
|
-----
|
||||||
|
|
||||||
<a id="Introduction"></a>
|
<a id="Introduction"></a>
|
||||||
|
@ -28,7 +29,7 @@ As Glibc is almost a standard in most GNU / Linux distributions, it is almost 10
|
||||||
|
|
||||||
-----
|
-----
|
||||||
|
|
||||||
<a id="Creatin-the-sandbox-(container)"></a>
|
<a id="Creating-the-sandbox-(container)"></a>
|
||||||
## Creating the sandbox (container)
|
## Creating the sandbox (container)
|
||||||
As mentioned above, if the Musl version is used in Void (or another distro that supports this library) they will not be able to run binaries that do not have an open source license or similar. It will even be impossible to try running i686 (32-bit) architecture programs.
|
As mentioned above, if the Musl version is used in Void (or another distro that supports this library) they will not be able to run binaries that do not have an open source license or similar. It will even be impossible to try running i686 (32-bit) architecture programs.
|
||||||
|
|
||||||
|
@ -91,6 +92,7 @@ int main(int argc, const char const *argv[]) {
|
||||||
// move glibc stuff in place
|
// move glibc stuff in place
|
||||||
e("unshare",unshare(CLONE_NEWNS));
|
e("unshare",unshare(CLONE_NEWNS));
|
||||||
e("mount",mount(SRC "/usr", "/usr", NULL, MS_BIND, NULL));
|
e("mount",mount(SRC "/usr", "/usr", NULL, MS_BIND, NULL));
|
||||||
|
e("mount",mount(SRC "/opt", "/opt", NULL, MS_BIND, NULL));
|
||||||
e("mount",mount(SRC "/var/db/xbps", "/var/db/xbps", NULL, MS_BIND, NULL));
|
e("mount",mount(SRC "/var/db/xbps", "/var/db/xbps", NULL, MS_BIND, NULL));
|
||||||
|
|
||||||
|
|
||||||
|
@ -162,7 +164,7 @@ xbps-install -Su
|
||||||
|
|
||||||
![09](Images/09.png)
|
![09](Images/09.png)
|
||||||
|
|
||||||
c) For this example we will install MEGAsync which, according to your template, cannot be built for use with Musl (Johnnynator, 2019)
|
c) For this example we will install MEGAsync which, according to your template, cannot be built for use with Musl (Johnnynator, 2021)
|
||||||
|
|
||||||
![10](Images/10.png)
|
![10](Images/10.png)
|
||||||
|
|
||||||
|
@ -262,7 +264,7 @@ If you want to install the following packages, install their respective dependen
|
||||||
## References
|
## References
|
||||||
* Alejandroliu. (2019). Void Glibc in Musl. Github [Website]: https://github.com/alejandroliu/0ink.net/blob/master/snippets/void-glibc-in-musl/glibc.c
|
* Alejandroliu. (2019). Void Glibc in Musl. Github [Website]: https://github.com/alejandroliu/0ink.net/blob/master/snippets/void-glibc-in-musl/glibc.c
|
||||||
* Anonymous. (August 16th, 2015). Difference between Musl and non-Musl ISOs? Reddit [Website]. https://www.reddit.com/r/voidlinux/comments/3h8aug/difference_between_musl_and_nonmusl_isos/
|
* Anonymous. (August 16th, 2015). Difference between Musl and non-Musl ISOs? Reddit [Website]. https://www.reddit.com/r/voidlinux/comments/3h8aug/difference_between_musl_and_nonmusl_isos/
|
||||||
* Jonnynator. (2019). Megasync/template. Github [Website]: https://github.com/void-linux/void-packages/blob/master/srcpkgs/MEGAsync/template
|
* Jonnynator. (2021). Megasync/template. Github [Website]: https://github.com/ibhagwan/megasync-template/blob/master/template
|
||||||
* Voidlinux (2017). The Advent of Void: Day 4: containers. Voidlinux [Website]: https://voidlinux.org/news/2017/12/advent-containers.html
|
* Voidlinux (2017). The Advent of Void: Day 4: containers. Voidlinux [Website]: https://voidlinux.org/news/2017/12/advent-containers.html
|
||||||
|
|
||||||
-----
|
-----
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 186 KiB After Width: | Height: | Size: 64 KiB |
Loading…
Reference in a new issue