Skip to content

Commit d77b762

Browse files
author
torri
committed
first batch of corrections
1 parent e5600c9 commit d77b762

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

docs/getting_access/non_standard.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ You can see the original blog post on how they used this solution in Deucalion [
131131

132132
## Via `squashfs` + cvmfs's `shrinkwrap` utility
133133

134-
CernVM-FS provides the Shrinkwrap utility, allowing users to create a portable snapshot of a CVMFS repository. This can be exported and distributed without the need of a CVMFS client or network access.
134+
CernVM-FS provides the [Shrinkwrap utility](https://cvmfs.readthedocs.io/en/stable/cpt-shrinkwrap.html), allowing users to create a portable snapshot of a CVMFS repository. This can be exported and distributed without the need of a CVMFS client or network access.
135135

136136
To create an export of EESSI in user space, you will first need to create the config file `software.eessi.io.config`:
137137

@@ -149,14 +149,16 @@ CVMFS_UID_MAP=uid.map
149149
CVMFS_GID_MAP=gid.map
150150

151151
```
152-
You will need to create the files `uid.map` and `gid.map` with the respective value you will use preceded by a `*`. For example, assuming UID 1000, set the two following files:
152+
You will need to create the files `uid.map` and `gid.map` with the respective value you will use preceded by a `*`. You will probably want to use the UID and GID of the current user, so, to set the two files:
153153

154154
```bash
155+
$ echo '*' $(id -u $USER) > uid.map
155156
$ cat uid.map
156-
* 1000
157+
* 1001
157158

159+
$ echo '*' $(id -g $USER) > gid.map
158160
$ cat gid.map
159-
* 1000
161+
* 1001
160162
```
161163
In addition, you need to create a spec file `software.eessi.io.spec` with the files you want to include and/or exclude in the shrinkwrap. Contents are:
162164

@@ -195,13 +197,13 @@ entriesSrc|1|Number of file system entries processed in the source
195197

196198
....
197199

198-
# This takes a long time
200+
# This takes a long time and space depending on how much you want to export
199201
```
200202

201203
Once completed, the contents will be available in /tmp/cvmfs. You can create an squashfs image from it:
202204

203205
```bash
204-
sudo mksquashfs /tmp/cvmfs software.eessi.io.sqsh
206+
mksquashfs /tmp/cvmfs software.eessi.io.sqsh
205207

206208
```
207209

0 commit comments

Comments
 (0)