summaryrefslogtreecommitdiff
path: root/recipes-core/base-files/base-files_3.0.14.bbappend
blob: 3ff14baa23b40786ad15a3accb95c8e7ef66ea6d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
PR = "m2"

CONFFILES_${PN}_remove = "${sysconfdir}/fstab"
FILES_${PN}_remove = "${sysconfdir}/fstab"

do_install_append() {
   if [ -d ${D}/media ] ; then
     rmdir ${D}/media  # So the next line does not nest the media link inside of media
   fi
   ln -snf /run/media ${D}/media
   set -x
   if [ -f ${D}/${sysconfdir}/fstab ] ; then
       rm ${D}/${sysconfdir}/fstab
   fi
   set +x
}