Commit graph

200 commits

Author SHA1 Message Date
chewitt
2c05b8c7ba busybox: tweak text as dtb.img is not a bootloader 2018-07-06 10:49:03 +04:00
MilhouseVH
6d696c7ac3 init: strip leading / from BOOT_IMAGE & DISK_IMAGE, normalising for all projects 2018-06-13 14:20:57 +01:00
Lukas Rusak
37b4ddd3cd
Revert "init: fix // as IMAGE_KERNEL and IMAGE_SYSTEM should always have a leading /"
This reverts commit 01a87ad788.
2018-06-11 10:10:14 -07:00
MilhouseVH
517330f9fe installer: drop extlinux support, not needed - use syslinux 2018-05-15 22:14:42 +01:00
MilhouseVH
cdb7daba21 grub: drop /flash/grub.cfg 2018-05-15 22:14:42 +01:00
MilhouseVH
7f61cb0349 init: fix grub check 2018-05-15 22:14:42 +01:00
MilhouseVH
52aa5db587 init: extra update validation 2018-05-15 22:14:42 +01:00
MilhouseVH
4c0b9c5f85 init: stop using backticks, minor cleanup 2018-05-15 22:14:42 +01:00
MilhouseVH
01a87ad788 init: fix // as IMAGE_KERNEL and IMAGE_SYSTEM should always have a leading / 2018-05-15 22:14:42 +01:00
MilhouseVH
20992919e1 init: update copyright 2018-05-15 22:14:42 +01:00
MilhouseVH
d8d723d7c2 init: drop BOOT_IMAGE from RPi/RPi2/Rockchip; fix img upgrades 2018-05-15 22:14:42 +01:00
MilhouseVH
63d995fc9c init: add post mount user hooks 2018-05-15 22:14:42 +01:00
MilhouseVH
f918598aa9 init: allow configurable ramdisk limit 2018-05-15 22:14:42 +01:00
MilhouseVH
2c281d13d9 syslinux.cfg/init/etc: unify syslinux.cfg 2018-05-15 22:14:42 +01:00
Chris Novakovic
dac5caa67c initramfs: write /dev/.flash_netboot if /flash is a remote filesystem
The init script currently touches a file at /dev/.storage_netboot if
/storage is a remote filesystem, so that scripts that run after the root
filesystem has been switched can behave differently depending on whether
/storage is mounted locally or remotely. Add similar functionality for
/flash by touching /dev/.flash_netboot if it is a remote filesystem.
2018-05-03 13:25:38 +01:00
MilhouseVH
4bc97b2aa9 init: fix offset calculation after busybox fdisk change 2017-12-04 00:49:10 +00:00
MilhouseVH
41dd8f9534 Merge pull request #2061 from maideii/libreelec-8.2
added EFI 32bit support via GRUB2
2017-10-12 23:05:17 +01:00
Matthias Reichl
ad9e8dc372 Add support for kernel overlays
Core Kernel modules are now installed to
/usr/lib/kernel-overlays/base/lib/modules instead of /usr/lib/modules

Firmware files are installed to
/usr/lib/kernel-overlays/base/lib/firmware instead of /usr/lib/firmware

Packages can choose to install their modules and/or firmwareinto a
different overlay directory than base so they are not automatically enabled.

A new systemd service kernel-overlays, which is run before any modules
are loaded, adds overlays enabled via /storage/.cache/kernel-overlays/*.conf

These conf files must either contain the name of a system overlay,
which will then be searched for in /usr/lib/kernel-overlays/, or an
absolute path starting with '/'.

Overlaying is implemented by symlinking files from the overlays
to /usr/lib/modules and /usr/lib/firmware as not all platforms
support overlayfs.

This overlaying system can also be used by addons to provide optional
kernel modules and/or firmware by storing the absolute path to the addon
directory in the conf file and shipping kernel modules in
<addondir>/lib/modules/<KERNELVER>.

To save space only symlinks for modules matching the currently
running kernel version are created as addons may want to ship
modules for older kernel versions as well to be backward-compatible
to older LibreELEC versions.

Changes since v1:
- fixup kernel-overlays-service: add before kmod-static-nodes.service
  Fix static device nodes for module autoloading not being created.
- fixup kernel-overlays-service: fail if /usr/lib/modules exists
- squash kernel overlays: use get_kernel_overlay_dir in linux/package.mk
- Add support for firmware files via kernel overlays
- config/functions: include kernel overlays in addon installation

Signed-off-by: Matthias Reichl <hias@horus.com>
2017-10-12 20:04:02 +02:00
maideii
7def0a79dc added EFI 32bit support via GRUB2-updated busybox init config 2017-10-12 08:40:08 +08:00
maideii
c268754d0d added EFI 32bit support via GRUB2-expanded all the config with variables 2017-10-10 11:31:49 +08:00
MilhouseVH
8ac550bde9 init: recover from a failed upgrade 2017-09-17 16:16:55 +01:00
Christian Hewitt
63c0f2cb8c Merge pull request #1773 from MilhouseVH/init_break_after
init: make break after behaviour really break after
2017-09-13 20:56:12 +04:00
MilhouseVH
52479d65d6 init: fix error handling during get_project_arch 2017-08-09 16:20:31 +01:00
MilhouseVH
c023719429 Merge pull request #1764 from chrisnovakovic/initramfs-enable-dns
initramfs: enable DNS if network is up
2017-07-12 04:39:36 +01:00
MilhouseVH
ea0f3f7096 init: make break after behaviour really break after 2017-07-10 05:15:49 +01:00
Alex Deryskyba
7e57ef4eee busybox: init: do not use dd option conv=fsync when updating kernel on a block device
Makes updates much faster for NAND installations on Amlogic-based devices.
2017-07-09 21:44:55 +02:00
Chris Novakovic
aeab02f728 initramfs: enable DNS if network is up
In certain situations, it is desirable for hostnames to be resolvable in
the initramfs (e.g., when a hostname is specified as the NFS server in
the "boot" or "disk" kernel parameters). If the network is up when the
init script is executed (e.g., when the "ip" kernel parameter is
specified) and a DNS server is known, write it to /etc/resolv.conf so it
can be used for DNS requests.
2017-07-09 00:31:52 +01:00
Lukas Rusak
c9a5cdefc3
busybox: use cttyhack 2017-07-07 13:37:11 -07:00
Lukas Rusak
725ea4f977
busybox: use unified /usr 2016-12-04 13:23:45 -08:00
MilhouseVH
fb1ac439cf openssh: UsePrivilegeSeparation/StrictModes not needed 2016-10-16 14:44:03 +01:00
MilhouseVH
213b65931c init: make sure /storage permissions are correct 2016-10-06 22:09:53 +01:00
MilhouseVH
cbb002240b init: synchronise UEFI and legacy syslinux.cfg updates 2016-09-28 18:27:28 +01:00
Lukas Rusak
a4cdd9345c Merge pull request #738 from MilhouseVH/gpt_fsresize
scripts/mkimage: Add run mode, remember default selection, resize gpt…
2016-09-20 13:12:21 -07:00
MilhouseVH
7353f15dd3 scripts/mkimage: Add run mode, remember default selection, resize gpt partitions 2016-09-15 23:25:13 +01:00
MilhouseVH
fdcf909dcf init: make sure /storage is owned by root 2016-09-10 00:56:25 +01:00
Christian Hewitt
d416dad6d1 Merge pull request #535 from MilhouseVH/init_protection
init: Add upgrade check to avoid incompatible upgrades [RFC,WIP]
2016-09-01 09:43:44 +04:00
MilhouseVH
dc41c0580c init: Add upgrade check to avoid incompatible upgrades [RFC,WIP] 2016-09-01 05:06:24 +01:00
MilhouseVH
a0e3207846 init: mount per-client boot/disk if available & configured (#621) 2016-08-26 20:14:35 +04:00
MilhouseVH
e90a2358af init: Report out of space when unable to extract archive/compressed image 2016-08-05 21:07:45 +01:00
kszaq
9e9ca25cb3 init: Fix updating from img.gz when kernel resides on block device
This fixes updating LE from img.gz when installed on WeTek internal memory.
2016-07-04 20:56:35 +02:00
MilhouseVH
c2ed75d138 init: Enable oem native resolution support, and debug info 2016-06-03 09:20:04 +01:00
MilhouseVH
4809df9715 init: Parse resolution after splash.conf 2016-06-01 20:01:54 +01:00
MilhouseVH
bcd6d7462a splash: Select splash image based on native resolution 2016-05-22 20:08:06 +01:00
longchair
bb10e9d103 scripts : remove some hardcoded LibreELEC distro name
Allows a distro to have it's name appear in installer and busybox scripts
2016-04-13 17:20:22 +02:00
MilhouseVH
80b4c5b75d Merge pull request #61 from chewitt/installer-cosmetic
installer: not all computers are computers
2016-03-31 05:35:58 +01:00
chewitt
826b819303 installer: text cosmetics for update/fs-resize 2016-03-31 08:31:20 +04:00
Peter Vicman
3145e182f1 init: remove warning when loop node already exist (wetek projects with CONFIG_BLK_DEV_LOOP_MIN_COUNT >0) 2016-03-30 10:24:49 +02:00
MilhouseVH
0af94509f7 init: Add progress indicators during long running updates 2016-03-23 19:43:20 +00:00
MilhouseVH
2f1b279177 Merge pull request #27 from vpeter4/img_update1
init: allow update also with .img.gz or .img besides to .tar
2016-03-21 07:19:18 +00:00
MilhouseVH
93d814c471 Revert "init: Add progress indicators during long running updates"
This reverts commit e45ba7e298.
2016-03-20 21:36:53 +00:00