Jo-Philipp Wich
50983767b3
block-mount: add a delay between sto pand start in fstab init restart action, fixes a lock race condition observed in VirtualBox
...
SVN-Revision: 34784
12 years ago
Jo-Philipp Wich
77fe98d134
block-mount: additionally try to umount disk by mountpoint ( #12056 )
...
SVN-Revision: 33357
12 years ago
Jo-Philipp Wich
6e419fbdeb
Fix extroot by UUID
...
Extroot works fine when the target device is specified by a path. It fails
however if the device is specified by UUID (the target partition gets mounted
much later by hotplug hooks). This is because the blkid command is no longer
compiled into BusyBox (since changeset [1]) so it's unavailable for the
preinit phase.
The closest bug report I was able to find is [2], although the reporting person
mentions that /tmp/overlay-disabled showed up which wasn't there in my case.
This patch sets PATH and LD_LIBRARY_PATH environment variables so that the
blkid command installed on the target device can be used by that particular
preinit script.
[1] https://dev.openwrt.org/changeset/26245
[2] https://dev.openwrt.org/ticket/10653
Signed-off-by: Jaroslaw Swierczynski <jarek1701@gmail.com>
SVN-Revision: 32567
13 years ago
Jo-Philipp Wich
9ae901445b
/etc/functions.sh => /lib/functions.sh
...
SVN-Revision: 32062
13 years ago
Jo-Philipp Wich
2419c1370a
block-mount: add missing chunk of previous commit
...
SVN-Revision: 31050
13 years ago
Felix Fietkau
904ecc2159
block-mount: do not auto-mount anonymous mtdblock devices ( fixes #10960 , #10850 )
...
SVN-Revision: 30501
13 years ago
Daniel Dickinson
c4e9e4d27e
block-mount: Fixed module loading (double cat is wrong)
...
SVN-Revision: 28717
13 years ago
Nicolas Thill
3bcb16b305
package/blockmount: simplify extroot module loading logic
...
SVN-Revision: 28650
13 years ago
Jo-Philipp Wich
a434ed2fc6
block-mount: remove explicit lock waits, solves some potential race conditions
...
SVN-Revision: 27226
14 years ago
Mirko Vogt
4798e27247
Revert "[package/block-mount] remove example config file"
...
This isn't needed anymore due to commit 27138
SVN-Revision: 27139
14 years ago
Mirko Vogt
4cbdfb6d92
remove example config file
...
Having this file prevents the possibility of having target-specific
fstab config files (as target/linux/${target}/base-files/etc/config/fstab).
There is no need of a non-working example file on the target anyway.
SVN-Revision: 27136
14 years ago
Daniel Dickinson
abf0b4b9a2
block-mount: Reverting 26503. Was already fixed in a better way in commit 26474.
...
SVN-Revision: 26505
14 years ago
Vasilis Tsiligiannis
5f6a87f6c4
block-mount: fsck.sh should only call pi_include() if dir /lib/functions/fsck exists.
...
/etc/functions.sh:pi_include() checks if the argument exists and prints
a warning if not. To prevent this warning if package block-mount is installed
but not package e2fsprogs, the script should check if this directory exists
before calling pi_include()
A wrong patch to suppress this warning was previously posted
with subject:
[PATCH] Fix typo in name of to be included file
Signed-off-by: Mark Vels <mark.vels@team-embedded.nl>
SVN-Revision: 26503
14 years ago
Daniel Dickinson
7f8fb5cb78
block-mount: Merged block-mount, block-extroot, and block-hotplug into a single binary package called block-mount.
...
SVN-Revision: 26314
14 years ago
Daniel Dickinson
9298073e80
block-mount block-extroot: Add commands /etc/init.d/fstab overlay_enable and /etc/init.d/fstab whole_root_enable to renable a disable rootfs.
...
SVN-Revision: 26312
14 years ago
Daniel Dickinson
544d1c045e
block-mount block-extroot: Rename /tmp/rom-disabled to /tmp/whole_root-dsibled for disabled mounts of a non-overlay external rootfs.
...
SVN-Revision: 26311
14 years ago
Daniel Dickinson
9d0b7371e8
block-mount: Changed default filesystem for /e/c/fstab to be ext4 instead of ext3
...
SVN-Revision: 26156
14 years ago
Daniel Dickinson
183b4d1a28
extroot: block-mount block-extroot: Added ability to do a whole disk extroot instead of only an overlay-based extroot.
...
SVN-Revision: 26109
14 years ago
Daniel Dickinson
47370c1fa4
block-mount: Fixed shell error on empty string due to -eq to number for the optional find_root variable
...
SVN-Revision: 25787
14 years ago
Daniel Dickinson
db0bff2724
block-mount,block-extroot: Modify mount.sh so that block-extroot mounts target /overlay as rootfs (use if is_rootfs is now deprecated) when block-extroot is installed, and as /tmp/overlay-disabled otherwise
...
SVN-Revision: 25786
14 years ago
Jo-Philipp Wich
613a513fe4
block-mount: fix fstab.init for IB and buildroot
...
SVN-Revision: 23296
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
Daniel Dickinson
b9dfb5d483
block-mount: Attempt swapon a after mounting as well as before. This ensures that swap on a filesystem is enabled.
...
SVN-Revision: 22150
15 years ago
Daniel Dickinson
117590a2ce
block-mount: Fixed two bugs in fstab.init. /etc/fstab was used where /tmp/fstab should have been, and locking was insufficiently careful and was such that it could result in deadlock when hotplug was in use.
...
SVN-Revision: 22148
15 years ago
Daniel Dickinson
b6d521ea33
block-mount: Enable swap before doing fsck so that large filesystem checks have swap as well as memory (as they take large memory for large partitions). Closes #7599 .
...
SVN-Revision: 22147
15 years ago
Daniel Dickinson
d9e8e8b4ec
block-extroot, block-mount: Fixed multiple bugs which prevented e2fsck from being executed on the external root filesystem before mounting it as root. Added /etc/e2fsck.conf which indicates that the clock is broken (since most OpenWRT devices don't have a battery backed RTC) so that e2fsck will not exit with fatal error when the rdat has not yet been run (i.e. before network).
...
SVN-Revision: 22002
15 years ago
Daniel Dickinson
e56dcdcffd
block-mount: Fixed mount deadlocks due to buggy use of locks in /lib/functions/block.sh
...
SVN-Revision: 21987
15 years ago
Felix Fietkau
bfeb96126d
add the block-mount package by Daniel Dickinson (cshore), replacing existing automount functionality
...
SVN-Revision: 19877
15 years ago