aboutsummaryrefslogtreecommitdiffstats
path: root/meta-intel-edison-distro/recipes-core/base-files/base-files_3.0.14.bbappend
blob: a7241a7792e5361f83a22f3192b8975ec98e66db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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"