Daniel Dickinson
1f69f4cf64
base-files: preinit: Fixed sourcing of diag.sh in /etc/preinit. This caused errors due to frequent use of /proc/cpuinfo to determine board name to pick led layout. Now diag.sh (which only defines set_state and any helper functions) is sourced by a proper preinit function during preinit_main, which is after /proc has been brought up, unlike in /etc/preinit
...
SVN-Revision: 27501
14 years ago
Daniel Dickinson
18b473ca9b
base/block-extroot, base/block-mount: Modified preinit and block-extroot and block-mount so that use of block-mount and block-extroot do not require that block-extroot, block-mount, nor the kernel modules they depend, on are required to included in the image. That is block-extroot and dependencies may now be installed as modules onto the jffs2 part of a squashfs system and it will work. In addition packages which are installed into the jffs2 of a squashfs system may now affect preinit, so long as they do not require execution of commands that occur before the merging of the jffs2 and built-in (squashfs) preinit scripts is done.
...
Thanks jow for the preinit merge stuff!
SVN-Revision: 23110
14 years ago
Nicolas Thill
d08b2b02cf
base-files: fix preinit code typos
...
Signed-off-by: Ithamar R. Adema <ithamar.adema@team-embedded.nl>
Acked-by: Daniel Dickinson <cshore@csolve.net>
SVN-Revision: 20124
15 years ago
Felix Fietkau
56bc02a305
add preinit modularization work by Daniel Dickinson (cshore)
...
SVN-Revision: 19331
15 years ago
Gabor Juhos
f494bcc222
package/base-files: set state to 'preinit' before preinit.arch is used, and set state to 'failsafe' when entering failsafe mode
...
SVN-Revision: 17517
15 years ago
Felix Fietkau
6155fdf5d3
preinit: fix failsafe mode through ctrl+c on devices that do not provide a preinit.arch file
...
SVN-Revision: 17470
15 years ago
Geoff Levand
525d86686e
udev: Update udev package from udev-106 to udev-142
...
Update the init scripts have to use udevadm where appropriate.
The udev package no longer provides separate udev utilities
like udevtrigger and udevsettle. These have been incorporated
into the udev admin program udevadm.
Replace the udevextras sub package with config options to the udev
package.
Update the preinit script to check for '/lib/udev/devices', and
copy it to '/dev/ if it is found, then to conditionaly setup
/dev the old way with mknod etc. Udev now recommends using
the directory '/lib/udev/devices' to initialize the '/dev'
directory at startup.
Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>
SVN-Revision: 17378
15 years ago
Gabor Juhos
463a6f4bda
base-files: update command line for the new hotplug2
...
SVN-Revision: 16154
16 years ago
Felix Fietkau
de0332f86a
rename our /bin/login script to /bin/login.sh to avoid collisions with busybox - we always use -l on telnetd anyway
...
SVN-Revision: 15097
16 years ago
Felix Fietkau
714ffa3260
fix failsafe mode
...
SVN-Revision: 15096
16 years ago
Florian Fainelli
38d1cb8cbd
Fix negative calculation of the tmpfs for devices with few RAM ( #3557 )
...
SVN-Revision: 12315
16 years ago
Mike Baker
1139608784
allow ctrl-c to trigger preinit
...
SVN-Revision: 12231
17 years ago
Felix Fietkau
aee15469df
use the same hotplug2 parameters for initramfs and regular
...
SVN-Revision: 12059
17 years ago
Felix Fietkau
37c7e13a5f
move the hotplug2 kill command from preinit to /etc/init.d/boot, so that it works for initramfs as well
...
SVN-Revision: 12058
17 years ago
Felix Fietkau
2c3018e0da
initramfs: start one hotplug2 for coldplugging and one for handling events between coldplug and end of /init
...
SVN-Revision: 10930
17 years ago
Felix Fietkau
7232fe9150
use the right hotplug2 invocation for initramfs
...
SVN-Revision: 10928
17 years ago
Gabor Juhos
8b011c593d
base-files: fix a typo
...
SVN-Revision: 10927
17 years ago
Felix Fietkau
0b341be6c0
This patch re-adds the udev and hotplug2 initialization fixes originally present in /init but was removed when some code was moved from /init to /etc/preinit in rev 10870. This adds udev initialization and only handles hotplug2 initialization when hotplug2 is present.
...
Signed-off-by: Yuji Mano <yuji.mano@am.sony.com>
SVN-Revision: 10912
17 years ago
Matteo Croce
227af4b113
assign names to filesystems when mounting virtual ones ( closes #3340 )
...
SVN-Revision: 10903
17 years ago
Felix Fietkau
41fb282b6d
remove some redundant code
...
SVN-Revision: 10870
17 years ago
Felix Fietkau
1e38527a52
add sysupgrade script for config preserving system upgrades. only implemented for x86-2.6 at the moment, but can be ported to other platforms easily
...
SVN-Revision: 8456
17 years ago
Felix Fietkau
114b9a8fb6
add failsafe support for atheros-2.6 ( #1501 ) - only works with ar5315+ at the moment
...
SVN-Revision: 7870
18 years ago
Felix Fietkau
5e7cb507cd
move parts of the failsafe code to the generic base-files - will be used on atheros as well as soon as i've added support for it
...
SVN-Revision: 7810
18 years ago
Felix Fietkau
8c41e51e92
fix failsafe on broadcom, send netlink events in diag when running linux 2.6
...
SVN-Revision: 7722
18 years ago
Mike Baker
40071deb7a
mount_root should only mount the root
...
SVN-Revision: 7418
18 years ago
Mike Baker
d502764953
/proc needs to be mounted before preinit.arch for failsafe
...
SVN-Revision: 7220
18 years ago
Florian Fainelli
5cbadc89e7
Fix set_state preinit stuff
...
SVN-Revision: 7200
18 years ago
Mike Baker
4a41439c46
unified preinit environment
...
SVN-Revision: 7173
18 years ago
Imre Kaloz
da547b8ab2
move the last change to the right place
...
SVN-Revision: 7069
18 years ago
Imre Kaloz
40e3aaf430
set $HOME to /tmp on bootup
...
SVN-Revision: 7068
18 years ago
Felix Fietkau
c96e173c28
add failsafe support for x86-2.6 and fix mdev support for platforms using /etc/preinit
...
SVN-Revision: 6481
18 years ago
Felix Fietkau
68ca8e7818
make squashfs overlay support more generic and integrate it for x86-2.6
...
SVN-Revision: 6450
18 years ago