summaryrefslogtreecommitdiff
path: root/package/block-mount
AgeCommit message (Collapse)Author
2012-09-10[package] block-mount: additionally try to umount disk by mountpoint (#12056)jow
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33357 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-07-01Fix extroot by UUIDjow
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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32567 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-06-05[package] /etc/functions.sh => /lib/functions.shjow
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32062 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-03-21[package] block-mount: add missing chunk of previous commitjow
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31050 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-03-21[package] block-mount: invoke blkid without cache file, this seems to fix ↵jow
mounts by uuid or label git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31049 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-02-13block-mount: do not auto-mount anonymous mtdblock devices (fixes #10960, #10850)nbd
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30501 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-11-02[package] block-mount: Fixed module loading (double cat is wrong)cshore
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28717 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-10-28package/blockmount: simplify extroot module loading logicnico
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28650 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-06-19[package] block-mount: remove explicit lock waits, solves some potential ↵jow
race conditions git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27226 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-06-08Revert "[package/block-mount] remove example config file"mirko
This isn't needed anymore due to commit 27138 git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27139 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-06-08[package/block-mount] remove example config filemirko
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. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27136 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-04-07[package] block-mount: Reverting 26503. Was already fixed in a better way ↵cshore
in commit 26474. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26505 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-04-06[package] block-mount: fsck.sh should only call pi_include() if dir ↵acinonyx
/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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26503 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-04-05[package] block-mount base-files: Added additional check to pi_include to ↵cshore
ensure that a directory used with pi_include actually contains files matching the souring pattern because if not the shell dies due to an empty string in for statement. Added /lib/functions/fsck as an empty dir to block-mount. This combination fixes a warning which generates a lot of bug reports, without panicking the kernel like the last attempt. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26479 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-04-05[package] block-mount: Revert 26468: it causes a kernel panic due to ↵cshore
pi_include failing due to the included directory being empty. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26476 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-04-04[package] block-mount: Removed duplicated directory creation in the package ↵cshore
install section. The duplicates were a result of the mergin the block-* packages. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26469 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-04-04[package] block-mount: Fixed warning of missing /lib/functions/fsck during ↵cshore
boot when no scripts are installed in the directory. Thanks to Maarten Bezemer. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26468 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-03-27[package] block-mount: Merged block-mount, block-extroot, and block-hotplug ↵cshore
into a single binary package called block-mount. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26314 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-03-27[package] block-mount block-extroot: Bump packages versions forgetten during ↵cshore
previous two commits git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26313 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-03-27[package] block-mount block-extroot: Add commands /etc/init.d/fstab ↵cshore
overlay_enable and /etc/init.d/fstab whole_root_enable to renable a disable rootfs. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26312 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-03-27[package] block-mount block-extroot: Rename /tmp/rom-disabled to ↵cshore
/tmp/whole_root-dsibled for disabled mounts of a non-overlay external rootfs. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26311 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-03-20[package] block-mount busybox: Removed busybox versions of blkid and ↵cshore
swap-utils since they are only used by block-mount and block-extroot, and those packages don't have as much need for the image space-savings of busybox versions, especially at the cost of including it in all images even those with no external storage. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26245 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-03-14[package] block-mount: Changed default filesystem for /e/c/fstab to be ext4 ↵cshore
instead of ext3 git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26156 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-03-13[package] extroot: block-mount block-extroot: Added ability to do a whole ↵cshore
disk extroot instead of only an overlay-based extroot. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26109 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-02-28[package] block-mount: Fixed shell error on empty string due to -eq to ↵cshore
number for the optional find_root variable git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25787 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-02-28[package] block-mount,block-extroot: Modify mount.sh so that block-extroot ↵cshore
mounts target /overlay as rootfs (use if is_rootfs is now deprecated) when block-extroot is installed, and as /tmp/overlay-disabled otherwise git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25786 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-10-07[package] block-mount: fix fstab.init for IB and buildrootjow
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23296 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-09-23[package] base/block-extroot, base/block-mount: Modified preinit and ↵cshore
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! git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23110 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-07-12[package] block-mount: Attempt swapon a after mounting as well as before. ↵cshore
This ensures that swap on a filesystem is enabled. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22150 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-07-12[package]: block-mount: Fixed two bugs in fstab.init. /etc/fstab was used ↵cshore
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. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22148 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-07-12[package]: block-mount: Enable swap before doing fsck so that large ↵cshore
filesystem checks have swap as well as memory (as they take large memory for large partitions). Closes #7599. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22147 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-06-30block-extroot, block-mount: Fixed multiple bugs which prevented e2fsck from ↵cshore
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). git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22002 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-06-29block-mount: Fixed mount deadlocks due to buggy use of locks in ↵cshore
/lib/functions/block.sh git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21987 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-04-15package/block-mount: mark /etc/config/fstab as conffiles (closes: #7130)nico
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20875 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-04-06package/block-mount: disable config options altering busybox configuration, ↵nico
fix dependencies git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20727 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-02-26add the block-mount package by Daniel Dickinson (cshore), replacing existing ↵nbd
automount functionality git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19877 3c298f89-4303-0410-b956-a3cf2f4a3e73