diff options
author | Matt Ranostay <matt.ranostay@konsulko.com> | 2017-03-27 21:24:12 +0300 |
---|---|---|
committer | Jan-Simon Moeller <jsmoeller@linuxfoundation.org> | 2017-04-04 08:46:11 +0000 |
commit | 8fc617944db680bcc77564b339bb6c44eca24044 (patch) | |
tree | 97b812535b11c013757c0a55a802c1b86f2be87c /meta-agl/recipes-core/systemd/systemd_%.bbappend | |
parent | b527bd9a01a3a6e253f8c9924dfa717db7e42717 (diff) |
Add media automounting support
Use the automount.rules from udev-extraconf for mounting and
unmounting removable media
AGL-Issue: SPEC-483
Change-Id: I8c0353a76d5080ec2e4eff9dc4a48ba771e7a393
Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
Diffstat (limited to 'meta-agl/recipes-core/systemd/systemd_%.bbappend')
-rw-r--r-- | meta-agl/recipes-core/systemd/systemd_%.bbappend | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/meta-agl/recipes-core/systemd/systemd_%.bbappend b/meta-agl/recipes-core/systemd/systemd_%.bbappend index ef877c0c1..a3213dc9c 100644 --- a/meta-agl/recipes-core/systemd/systemd_%.bbappend +++ b/meta-agl/recipes-core/systemd/systemd_%.bbappend @@ -1,6 +1,8 @@ FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" SRC_URI += "file://e2fsck.conf \ + file://automount-rules \ + file://mount.sh \ ${@bb.utils.contains('VIRTUAL-RUNTIME_net_manager','systemd','file://wired.network','',d)} \ " @@ -13,6 +15,11 @@ do_install_append() { # Install /etc/e2fsck.conf to avoid boot stuck by wrong clock time install -m 644 -p -D ${WORKDIR}/e2fsck.conf ${D}${sysconfdir}/e2fsck.conf + if ${@bb.utils.contains('DISTRO_FEATURES', 'automount', 'true', 'false', d)}; then + install -m 644 -p -D ${WORKDIR}/automount-rules ${D}${sysconfdir}/udev/rules.d/automount.rules + install -m 755 -p -D ${WORKDIR}/mount.sh ${D}${sysconfdir}/udev/scripts/mount.sh + fi + if ${@bb.utils.contains('VIRTUAL-RUNTIME_net_manager','systemd','true','false',d)}; then # Install DHCP configuration for Ethernet adapters install -m 644 ${WORKDIR}/wired.network ${D}${sysconfdir}/systemd/network |