Use consistent whitespace for all `progress "..."` lines.
Don't mount $disk if it is not set (e.g. in the installer).
Don't check for /storage/$OVERLAY_DIR, just create it.
Move the overlay functionality into an if statement.
Don't move /storage if $disk is not set (e.g. in the installer).
Signed-off-by: Alain Kalker <a.c.kalker@gmail.com>
This fixes overlay mount so it doesn't add $OVERLAY_DIR at the end of the
parameter list.
Kernel commandline parameter 'overlay' should now work for both NFS and
CIFS/SMB mounts, but alas, busybox CIFS mount doesn't (yet) support subdir
mounts (regular mount does). Leaving this in for posterity.
Signed-off-by: Alain Kalker <a.c.kalker@gmail.com>
When debugging, any information about the problem is valuable, so don't
suppress output.
Add a variable: SILENT_OUT whose value is the file descriptor to use for
commands that should normally be silent.
Idea taken from buildsystem's config/path , and slightly shortened.
Signed-off-by: Alain Kalker <a.c.kalker@gmail.com>
Example usage:
disk=CIFS=//192.168.1.1/share,user=name,password=secret
disk=SMB=//192.168.1.1/public,user=guest
Note: comma's ',' are not allowed in
CIFS options (for example in usernames or passwords) because they are used
to separate options.
Note: SMB is an alias for CIFS, for people who are more used to that name.
Signed-off-by: Alain Kalker <a.c.kalker@gmail.com>
Adds a new kernel commandline parameter: overlay , which enables multiple
clients to use a single configuration file while keeping their storage mounts
separate. For the given example, the storage mounts will be under
/var/lib/overlay/<mac-address>
This will only work with mount types which support subdirectory mounts.
Example usage: disk=NFS=192.168.1.1:/var/lib/overlay overlay
Signed-off-by: Alain Kalker <a.c.kalker@gmail.com>