@@ -51,8 +51,8 @@ function onerror(error)
5151}
5252
5353/**
54- * This functions takes the cmdline **showed below in the example** and splits
55- * it into key value pairs
54+ * This functions takes the ` cmdline` from `/proc/cmdline` **showed below in
55+ * the example** and splits it into key/ value pairs
5656 * @access private
5757 * @param {String } cmdline This string contains information about the
5858 * initrd and the root partition
@@ -100,10 +100,10 @@ function linuxCmdline(cmdline)
100100 * @param {Object } info This object holds information
101101 * about the folder to create
102102 * @property {String } info.dev Device-File being mounted
103- * (located in /dev) a.k.a. devFile.
103+ * (located in ` /dev` ) a.k.a. devFile.
104104 * @property {String } info.path Directory to mount the device to.
105105 * @property {String } info.type Filesystem identificator
106- * (one of /proc/filesystems).
106+ * (one of ` /proc/filesystems` ).
107107 * @property {Array|Number } info.[flags] Flags for mounting
108108 * @property {String } info.[extras] The data argument is
109109 * interpreted by the different
@@ -122,7 +122,7 @@ function mkdirMountInfo(info, callback)
122122}
123123
124124/**
125- * Asynchronously create a target directory mount the source with MS_MOVE to it
125+ * Asynchronously create a target directory mount the source with ` MS_MOVE` to it
126126* and move all files to the newly created directory
127127 * @access private
128128 * @param {Object } info
@@ -145,7 +145,7 @@ function mkdirMoveInfo(info, callback)
145145 * @param {String } upperdir Path to the Init file
146146 * The path must contain a init file
147147 * Because execInit checks the gid & uid of the file
148- * and of the ' upperdir'
148+ * and of the " upperdir"
149149 * @example
150150 * let infos = [ mountInfo1, mountInfo2 ] // see under mkdirMountInfo
151151 * // for more Info
@@ -174,7 +174,7 @@ function mountUserFilesystems(arr, upperdir, callback)
174174
175175/**
176176 * Waits until dev is mounted and then executes `mountUserFilesystems` to
177- * mount `$upperdir/proc` and `$upperdir/tmp`
177+ * mount `${ upperdir} /proc` and `${ upperdir} /tmp`
178178 * @access private
179179 * @param {String } upperdir The upperdir
180180 * @param {Boolean } isRoot True if user is root, false if not
@@ -239,7 +239,7 @@ function mountDevProcTmp_ExecInit(upperdir, isRoot, callback)
239239}
240240
241241/**
242- * overlay_user first creates the workdir (with 0100 permission)
242+ * ` overlay_user` first creates the workdir (with ` 0100` permission)
243243 * which is a string out of the folder where all users are located, a
244244 * constant `.workdirs` and the username e.g. `${usersFolder}/.workdirs/${user}`
245245 * @access private
@@ -306,7 +306,7 @@ function overlay_user(usersFolder, user, callback)
306306
307307/**
308308 * Filter folders that are valid user `$HOME`
309- * If the first char is not a dot (invisible folder?) and not root and not
309+ * If the first char is not a dot (invisible folder?) and not ` root` and not
310310 * ´lost+found´ return true
311311 * @access private
312312 * @param {String } user The name of the user
@@ -317,7 +317,7 @@ function filterUser(user)
317317}
318318
319319/**
320- * Mount users directories and exec their init files
320+ * Mount users directories and exec their ` init` files
321321 * @access private
322322 * @param {String } usersFolder The path to all user directories
323323 * @param {Function } callback The callback function
@@ -329,7 +329,7 @@ function overlay_users(usersFolder, callback)
329329 function done ( error )
330330 {
331331 // Remove the modules from initramfs to free memory
332- // rimraf('/lib/node_modules')
332+ // rimraf('/lib/node_modules')
333333 rimraf ( '/lib/node_modules/nodeos-mount-utils' )
334334
335335 // Make '/usr' a opaque folder (OverlayFS feature)
@@ -439,12 +439,12 @@ function adminOrUsers(home)
439439
440440/**
441441 * Prepares the session and checks if the users filesystem has a root account,
442- * if not check if cmdline has the single key
442+ * if not check if `/proc/ cmdline` has the single key
443443 * It deletes the `root`, `rootfstype` and `vga` environment variables
444444 * and adds `NODE_PATH` to it.
445445 * @access private
446446 * @return {Repl } Returns either a repl or a error if the error contains
447- * a ENOENT code
447+ * a ` ENOENT` code
448448 */
449449function prepareSessions ( )
450450{
@@ -477,7 +477,7 @@ function prepareSessions()
477477}
478478
479479/**
480- * This function mounts the user fs
480+ * This function mounts the userfs
481481 * if the root env variable contains `container` it prepares the session
482482 * and if there is no root env var then it awaits the user device and
483483 * then mounts the user device and then prepares the session
@@ -486,7 +486,7 @@ function prepareSessions()
486486 * `/proc/cmdline` file
487487 * @return {Prompt|Error } It returns either a prompt if the
488488 * tries has reached its limit or a error
489- * if the mkdirMount fails to create the user
489+ * if the ` mkdirMount` fails to create the user
490490 * device
491491 */
492492function mountUsersFS ( cmdline )
0 commit comments