This commit (apart from the cosmetic change to avoid using 'none') changes the use of ramfs into tmpfs. The reason for this is that ramfs usage can fill 100% of RAM and cannot be swapped out. While tmpfs can be swapped out and can be limited in size.
The size chosen is arbitrary, but taking into account the ATV1 hardware 5% of 256MB means 12MB and 20% means 50MB, considering we have swap this is not too drastic. For any larger system, these sizes are fine as well as we do not expect /var or /dev/shm to be filled completely. So worst case is covered, but not expected.
possible syslinux menu with option for running installer or live system
new mount type FILE with optional size in MB for loopback file
disk=FILE=storage.loop
disk=FILE=storage.loop,100
dd and mkfs.ext4 are used from system (no need to increase the size of initramfs)
When a kernel module fails to load, produce a warning instead of
an error and skip that module instead of halting the system.
Currently uses progress() for the warning, we may need a better
alternative.
Signed-off-by: Alain Kalker <a.c.kalker@gmail.com>
Add support for iSCSI mounts.
Based on the work by Yann Cézard <eesprit@free.fr> , adapted to the new syntax.
Example usage:
Example 1: Autoconfigure network based on iBFT, autologin to iSCSI target
based on iBFT, mount partition with label 'Storage':
disk=ISCSI=auto,LABEL=Storage
Example 2: Specify any needed iSCSI options, mount partition 1 on /dev/sdb:
disk=ISCSI=param1=val1,param2=val2,...,/dev/sdb1
Note: the parameter after the very last comma _must_ be a valid LABEL=, UUID=
or device path.
Signed-off-by: Alain Kalker <a.c.kalker@gmail.com>
This adds the possibility of specifying extra mount options for NFS mounts.
Example usage: disk=NFS=192.168.1.1:/export,proto=udp
Feature request and patch submitted by: Björn Ketelaars <bjorn.ketelaars@hydroxide.nl>
Signed-off-by: Alain Kalker <a.c.kalker@gmail.com>
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>