diff options
author | Denys Dmytriyenko <denys@ti.com> | 2014-04-01 03:54:11 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-04-25 17:19:20 +0100 |
commit | 20ded0a263333a1eaef7a717cf8d764b47115e68 (patch) | |
tree | 7ed4e1af009ba71bc17e103fa92c7d1d3f0dc865 /meta/recipes-core/udev/udev-extraconf_1.1.bb | |
parent | 62238e1335e16347e9419184b8e30f508ada6e11 (diff) | |
download | poky-20ded0a263333a1eaef7a717cf8d764b47115e68.tar.gz |
udev-extraconf: update mount.sh to use /run/media instead of /media
This is done to work around the issue of auto-mounting block devices
(i.e. SD cards) when root filesystem is still in read-only mode and
creating /media/<device> mount-points by udev is not possible. That
is due to udev (/etc/rcS.d/S03udev) getting started earlier than
checkroot (/etc/rcS.d/S10checkroot.sh) gets a chance to re-mount the
rootfs as read-write.
Although, canonical FHS specifies /media/<device> as a mount point
for removable media devices, the latest 2.3 version was released in
2004 and since then FreeDesktop/udisks and other tools adopted the
new /run/media/<user>/<device> location. That was done to overcome
read-only rootfs limitation, since /run is usually a tmpfs mounted
partition, plus avoid name-clash between users.
For our embedded systems environment we assume single-user operation
and hence simplify mount point to just /run/media/<device>. But for
proper per-user mounting to /run/media/<user>/<device>, some sort of
session management is required along with the tool like udisks, that
is out of scope of this simple udev-based auto-mounting.
(From OE-Core rev: acfe3014d41de5e87cdbc58d0396349c6b9c3ffd)
Signed-off-by: Denys Dmytriyenko <denys@ti.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/udev/udev-extraconf_1.1.bb')
-rw-r--r-- | meta/recipes-core/udev/udev-extraconf_1.1.bb | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/meta/recipes-core/udev/udev-extraconf_1.1.bb b/meta/recipes-core/udev/udev-extraconf_1.1.bb new file mode 100644 index 0000000000..d69056dd76 --- /dev/null +++ b/meta/recipes-core/udev/udev-extraconf_1.1.bb | |||
@@ -0,0 +1,39 @@ | |||
1 | SUMMARY = "Extra machine specific configuration files" | ||
2 | DESCRIPTION = "Extra machine specific configuration files for udev, specifically blacklist information." | ||
3 | LICENSE = "MIT" | ||
4 | LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=4d92cd373abda3937c2bc47fbc49d690 \ | ||
5 | file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" | ||
6 | |||
7 | SRC_URI = " \ | ||
8 | file://automount.rules \ | ||
9 | file://mount.sh \ | ||
10 | file://mount.blacklist \ | ||
11 | file://autonet.rules \ | ||
12 | file://network.sh \ | ||
13 | file://localextra.rules \ | ||
14 | " | ||
15 | |||
16 | |||
17 | do_install() { | ||
18 | install -d ${D}${sysconfdir}/udev/rules.d | ||
19 | |||
20 | install -m 0644 ${WORKDIR}/automount.rules ${D}${sysconfdir}/udev/rules.d/automount.rules | ||
21 | install -m 0644 ${WORKDIR}/autonet.rules ${D}${sysconfdir}/udev/rules.d/autonet.rules | ||
22 | install -m 0644 ${WORKDIR}/localextra.rules ${D}${sysconfdir}/udev/rules.d/localextra.rules | ||
23 | |||
24 | install -m 0644 ${WORKDIR}/mount.blacklist ${D}${sysconfdir}/udev/ | ||
25 | |||
26 | install -d ${D}${sysconfdir}/udev/scripts/ | ||
27 | |||
28 | install -m 0755 ${WORKDIR}/mount.sh ${D}${sysconfdir}/udev/scripts/mount.sh | ||
29 | install -m 0755 ${WORKDIR}/network.sh ${D}${sysconfdir}/udev/scripts | ||
30 | } | ||
31 | |||
32 | FILES_${PN} = "${sysconfdir}/udev" | ||
33 | RDEPENDS_${PN} = "udev" | ||
34 | CONFFILES_${PN} = "${sysconfdir}/udev/mount.blacklist" | ||
35 | |||
36 | # to replace udev-extra-rules from meta-oe | ||
37 | RPROVIDES_${PN} = "udev-extra-rules" | ||
38 | RREPLACES_${PN} = "udev-extra-rules" | ||
39 | RCONFLICTS_${PN} = "udev-extra-rules" | ||