Commit Graph

83 Commits

Author SHA1 Message Date
Stephan Raue
3ce4cccbee busybox-initramfs: remove LTO hack
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2012-03-30 21:57:57 +02:00
Stephan Raue
781516b870 open-iscsi: update to open-iscsi-ae94266
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2012-03-27 20:27:30 +02:00
Stephan Raue
d98af29041 Merge pull request #375 from ackalker/initramfs-iscsi-support
initramfs init: add support for iSCSI mounts, this fixes #269
2012-03-27 11:09:48 -07:00
Alain Kalker
a148061ac7 open-iscsi: Remove redundant line
Signed-off-by: Alain Kalker <a.c.kalker@gmail.com>
2012-03-27 18:08:37 +02:00
Stephan Raue
e0aba60868 Merge pull request #374 from ackalker/nfs-user-options
initramfs init: add user-defined mount options for NFS mounts
2012-03-26 15:55:20 -07:00
Alain Kalker
ee48f9a59a busybox-initramfs: init: add support for iSCSI mounts
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>
2012-03-26 19:29:29 +02:00
Yann Cézard
4848bbb78c Add mkpkg_open-iscsi to build the package archive from the official open-iscsi GIT (2) 2012-03-26 03:54:42 +02:00
Yann Cézard
5c176481a8 Add mkpkg_open-iscsi to build the package archive from the official open-iscsi GIT. 2012-03-26 03:54:42 +02:00
Yann Cézard
527388ef66 Add iSCSI modules into kernel.
Fix build script + updated init.
2012-03-26 03:54:42 +02:00
Yann Cézard
d00667dbe4 Add support for iscsi on boot to initrd (only built and added if ISCSI_SUPPORT is enabled in options). 2012-03-26 03:54:41 +02:00
Alain Kalker
fb3b784476 busybox-initramfs: init: Add user-defined mount options for NFS mounts
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>
2012-03-25 14:28:11 +02:00
Stephan Raue
27a27b7659 busybox-initramfs: cleanup config
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2012-03-25 01:48:09 +01:00
Alain Kalker
16a3f22836 busybox-initramfs: init: cleanup, improve readability
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>
2012-03-20 22:18:39 +01:00
Alain Kalker
56b29979f6 busybox-initramfs: init: Allow overlay mount for mount types with parameters
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>
2012-03-20 20:40:06 +01:00
Alain Kalker
03fcc58fae busybox-initramfs: init: Don't suppress output when debugging
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>
2012-03-20 20:40:06 +01:00
Alain Kalker
0de52e9de0 busybox-initramfs: init: cosmetics
Don't add general mount options to NFS_OPTIONS, pass them as combined options
instead.

Signed-off-by: Alain Kalker <a.c.kalker@gmail.com>
2012-03-20 20:40:06 +01:00
Alain Kalker
4f0052a875 busybox-initramfs: init: add support for CIFS mounts
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>
2012-03-20 20:37:58 +01:00
Alain Kalker
b68c832489 busybox-initramfs: init: add kernel commandline parameter: overlay
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>
2012-03-19 18:55:38 +01:00
Alain Kalker
cd052262f8 busybox-initramfs: init: add support for NFS mounts
Example usage: boot=NFS=192.168.1.1:/tftpboot

Signed-off-by: Alain Kalker <a.c.kalker@gmail.com>
2012-03-19 18:53:27 +01:00
Alain Kalker
ac1d0eb0d9 busybox-initramfs: init: add support for NBD mounts
Example kernel command parameter: boot=NBD=192.168.1.1:2000

Signed-off-by: Alain Kalker <a.c.kalker@gmail.com>
2012-03-19 18:47:58 +01:00
Alain Kalker
a3f3a62767 busybox-initramfs: reorganize init script in preparation for boot type handlers
Changes to kernel commandline parameters:

Remove legacy parameters, to be added back later if desired.
Add a new parameter: break=<all|step,step,...> which will cause a debugging
shell to be started after each or the specified boot steps.

Functions:

mount_part, mount_disk, mount_nbd: reorganize to use mount type handlers, which
will support specifying kernel parameters like boot=TYPE=target and
disk=TYPE=target. This initial commit only has mount_default, which supports
LABEL=label and UUID=uuid, as well as block devices /dev/* and image files.

error: show more meaningful error messages, containing the boot step and action
which caused the error.
If not debugging, halt the system. This prevents the error from causing more
damage further on in the boot sequence. If debugging, start a debugging shell.

update: make sure the file to update already exists at the destination, to
prevent clobbering a rootfs mounted on /flash, which can be the case when
mounting a mtd or NBD device.

load_modules: enable loading of kernel modules in early boot, e.g. xhci-hcd
to enable mount of USB3 devices on boot.

Add a simple boot step sequencer, which allows for starting a debugging shell
after each step.

Signed-off-by: Alain Kalker <a.c.kalker@gmail.com>
2012-03-19 18:47:44 +01:00
Domin6
543c89c24b Change copyright and FSF address, this fixes #252 2012-02-29 13:36:32 +01:00
Stephan Raue
f50451add7 busybox-initramfs: 'clear' must be called via busybox here
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2012-02-28 09:29:07 +01:00
Stephan Raue
a37e76f99d busybox-initramfs: clear screen on boot and hide cursor if possible
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2012-02-24 08:12:19 +01:00
Stephan Raue
1df8403a88 busybox-initramfs: dont start splash here
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2012-02-23 21:36:21 +01:00