FILESEXTRAPATHS_prepend := "${THISDIR}/base-files:" SRC_URI += "file://release" SRC_URI += "file://fstab" SRC_URI += "file://media-sdcard.mount" SRC_URI += "file://media-sdcard.automount" SRC_URI += "file://factory.mount" SRC_URI += "file://share/dot.profile" # override default volatile to suppress var/log link creation volatiles = "tmp" do_install_append() { install -m 0644 ${WORKDIR}/release ${D}${sysconfdir}/release install -m 0644 ${WORKDIR}/fstab ${D}${sysconfdir}/fstab install -m 0755 ${WORKDIR}/share/dot.profile ${D}${sysconfdir}/skel/.profile # enable mount of the SDCard in /media/sdcard when inserted install -d ${D}${systemd_unitdir}/system install -c -m 0644 ${WORKDIR}/media-sdcard.mount ${D}${systemd_unitdir}/system install -c -m 0644 ${WORKDIR}/media-sdcard.automount ${D}${systemd_unitdir}/system install -c -m 0644 ${WORKDIR}/factory.mount ${D}${systemd_unitdir}/system # Enable the service install -d ${D}${sysconfdir}/systemd/system/local-fs.target.wants ln -sf ${systemd_unitdir}/system/media-sdcard.automount \ ${D}${sysconfdir}/systemd/system/local-fs.target.wants/media-sdcard.automount install -d ${D}${sysconfdir}/systemd/system/default.target.wants ln -sf ${systemd_unitdir}/system/factory.mount \ ${D}${sysconfdir}/systemd/system/default.target.wants/factory.mount } FILES_${PN} += "${base_libdir}/systemd/system/*.mount" FILES_${PN} += "${base_libdir}/systemd/system/*.automount" FILES_${PN} += "${sysconfdir}/systemd/system/default.target.wants/*.mount" FILES_${PN} += "${sysconfdir}/systemd/system/local-fs.target.wants/*.automount"