Commit Graph

71 Commits

Author SHA1 Message Date
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
Stephan Raue
eb7a82935c remove package e2fsprogs-initramfs
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2012-02-23 21:34:18 +01:00
Stephan Raue
01944329d8 remove package util-linux-initramfs
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2012-02-23 21:34:06 +01:00
Stephan Raue
53bae0bc42 splashutils: move splash stuff out of initramfs to userspace
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2012-02-23 21:33:36 +01:00
Stephan Raue
b45628754b busybox-initramfs: use splashutils instead busybox's fbsplash
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2012-02-23 03:16:54 +01:00
Stephan Raue
1c06a96de0 busybox-initramfs: dont install old splash
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2012-02-23 03:09:13 +01:00
Stephan Raue
a2f9a09fd9 busybox-initramfs: add applet 'chvt'
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2012-02-23 03:08:22 +01:00
Stephan Raue
b361f81080 new package: add package 'splashutils-initramfs'
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2012-02-23 03:07:43 +01:00
Stephan Raue
d9ab733ecc busybox-initramfs: fix install script
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2012-02-08 22:43:32 +01:00
Stephan Raue
bfd3841491 remove package 'plymouth-lite'
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2012-02-07 01:27:27 +01:00
Stephan Raue
d66f206af5 busybox-initramfs: use 'fbsplash' for bootsplash
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2012-02-07 01:26:56 +01:00
Stephan Raue
f785609cab busybox-initramfs: enable applet 'fbsplash'
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2012-02-07 01:26:06 +01:00
Stephan Raue
93f3737a94 openssh: dont run ssh per default, there is a security related discussion in http://openelec.tv/forum/20-development-discussion/20259-security-the-dilema-of-the-out-of-the-box-experience . Add 'ssh' to the appendline in our bootloader, or put a file called 'ssh_enable' in /storage/.config or the 'Configfile' Samba share. Both will enable SSH on boot. Add 'progress' to the appendline in bootloader to show the bootprogress without enabled debugging.
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2011-12-22 20:38:15 +01:00