Commit Graph

84 Commits

Author SHA1 Message Date
Stephan Raue
f7783cfde4 Revert "busybox-initramfs: add fsck for local disks, actually supported for ext2-4, vfat/msdos and hfs/hfs+ partitions"
This reverts commit 950baeb288.

Conflicts:
	packages/initramfs/sysutils/busybox-initramfs/scripts/init
2013-10-07 02:34:20 +02:00
Stephan Raue
8d04e2048d busybox-initramfs: make uvesafb support optional, and use only if needed
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2013-09-30 04:06:47 +02:00
Stefan Saraev
ee9b463d05 init: always spawn debugshell on fatal errors 2013-08-15 21:20:34 +03:00
Stephan Raue
84a7af2f29 busybox-initramfs: install applet 'dd' and use it in initramfs
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2013-05-30 20:15:58 +02:00
Stefan Saraev
5572a27b5e busybox-initramfs: use (external) dd from /sysroot 2013-05-30 12:25:08 +03:00
Stefan Saraev
951dc38524 busybox: fix a stupid typo
I will not do such things again, I promise.
I will not do such things again, I promise.
I will not do such things again, I promise.

:)
2013-05-30 00:06:28 +03:00
Stephan Raue
d1843e4a33 Merge branch 'master' of github.com:OpenELEC/OpenELEC.tv 2013-05-25 19:17:26 +02:00
Stefan Saraev
0ef1409cf8 busybox-initramfs: init: cleanup (another one) 2013-05-25 19:03:12 +03:00
Stefan Saraev
8c7241c53d busybox-initramfs: init: cleanup (/flash is actual root filesystem?) 2013-05-25 19:01:31 +03:00
Stephan Raue
48182d1e7a Merge branch 'master' of github.com:OpenELEC/OpenELEC.tv
Conflicts:
	packages/mediacenter/xbmc-theme-Confluence/meta
	packages/mediacenter/xbmc/meta
2013-05-25 14:01:09 +02:00
Stephan Raue
e57640e355 busybox-initramfs: only run fsck if installed
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2013-05-25 13:56:29 +02:00
fritsch
8444c690f8 Fix boot after: 7916defc49
closes #2316
2013-05-24 21:49:58 +03:00
Stephan Raue
950baeb288 busybox-initramfs: add fsck for local disks, actually supported for ext2-4, vfat/msdos and hfs/hfs+ partitions
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2013-05-20 00:30:49 +02:00
Stefan Saraev
ca8c0d4dd5 busybox & busybox-initramfs: clean up fastboot 2013-05-12 22:08:59 +03:00
Dag Wieers
5de4a850ec Mount /var as tmpfs and limit the use of tmpfs
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.
2013-05-09 01:12:26 +02:00
Stephan Raue
093234a14d busybox-initramfs: add support to update MACH_KERNEL for ATV1, simplyfing cleaning of update folder
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2013-03-22 22:26:25 +01:00
Stephan Raue
8c5eecfb37 busybox-initramfs: some better descriptions
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2013-03-21 05:09:57 +01:00
vpeter4
c28895b04d liveusb: enable running OpenELEC from only one USB stick
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)
2013-03-18 21:59:05 +01:00
vpeter4
0f6c67d008 update: check for enough space before copying KERNEL and SYSTEM files, closes #1984 2013-03-05 17:49:57 +01:00
Stephan Raue
0757e8858d busybox-initramfs: dont load splash in background, to make Milhouse happy
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2013-02-03 01:36:27 +01:00
Stephan Raue
75ebfa364d busybox-initramfs: fix system-to-ram support, move default variables block after mounting the special filesystems
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2013-01-11 14:05:20 +01:00
Stephan Raue
9b5157473a busybox-initramfs: load initramfs.conf globally, add support to disable framebuffer resolution switching
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2013-01-02 22:55:01 +01:00
Stephan Raue
b4dbbbdd97 busybox-initramfs: copy SYSTEM to RAM before mounting. this new feature can be deactivated with the 'noram' option to the bootloaderconfig or is not avaible if to avaible total memory (1024000 Kb on normal systems, 364544 Kb for RaspberryPi) is to low.
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2012-11-21 16:08:10 +01:00
Stephan Raue
84340cbf35 busybox-initramfs: check_disks() fix initscript
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2012-08-13 03:00:24 +02:00
Stephan Raue
17aec04fc9 busybox-initramfs: add support to update bootloader
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2012-08-07 01:52:39 +02:00
Stephan Raue
df99a9fdf3 busybox-initramfs: seperate mount_flash() and mount_storage(), load splash after mounting /flash
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2012-08-06 18:28:28 +02:00
Stephan Raue
4380792b1d Revert "busybox-initramfs: mount with enabled 'discard', we will see if its problematic"
This reverts commit f7fce74ee0.
2012-06-19 07:48:40 +02:00
Stephan Raue
f7fce74ee0 busybox-initramfs: mount with enabled 'discard', we will see if its problematic
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2012-06-14 10:24:40 +02:00
Alain Kalker
4fc2b8ee96 busybox-initramfs: Skip and warn instead of error on module load failure
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>
2012-05-15 00:12:38 +02:00
Stephan Raue
a4c48a52b4 busybox-initramfs: fix fbset command again, thanks to Dom
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2012-05-12 23:24:43 +02:00
Stephan Raue
cc4d054cc8 busybox-initramfs: set vxres and vyres values for fbset too, thanks to Dom
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2012-05-11 19:58:03 +02:00
Stephan Raue
a9fa8a5dd9 busybox-initramfs: add support for renamed KERNEL and SYSTEM
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2012-05-04 07:17:07 +02:00
Stephan Raue
79d6369d99 Merge pull request #566 from stefansaraev/busybox
busybox-initramfs: check md5 sums before OS upgrade
2012-05-03 19:17:51 -07:00
Stephan Raue
851bebf4c3 busybox-initramfs: readd support for oemsplash and project based splash
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2012-05-03 22:58:23 +02:00
Stefan Saraev
afe0488a84 busybox-initramfs: check md5 sums before OS upgrade 2012-05-03 14:50:34 +03:00
Stephan Raue
aa768e399e busybox-initramfs: add support to start splash in initramfs
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2012-05-03 13:03:33 +02:00
Stephan Raue
4aa04fd8f4 Merge pull request #358 from ackalker/initramfs-kernel-modules
Enhancement: Load kernel modules in initramfs init
2012-05-02 22:14:49 -07:00
Stephan Raue
4de0d1344b busybox-initramfs: try longer to mount partitions, its needed on slow devices like RPi
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2012-05-02 07:35:30 +02:00
Alain Kalker
52898a1dc1 busybox-initramfs: init: fix loading of kernel modules
Add missing .ko to module name.

Signed-off-by: Alain Kalker <a.c.kalker@gmail.com>
2012-04-27 16:05:40 +02:00
Stephan Raue
5a2f6b4e9f busybox-initramfs: force reading $disk and $boot variable via /proc/cmdline
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2012-04-12 15:01:57 +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
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
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
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