base-files_%.bbappend - meta-skynet - yocto meta-layer for skynet-os
HTML git clone https://git.drkhsh.at/meta-skynet.git
DIR Log
DIR Files
DIR Refs
DIR README
---
base-files_%.bbappend (1073B)
---
1 FILESEXTRAPATHS:prepend := "${THISDIR}/files:"
2
3 # Add a mount point for a shared data partition
4 dirs755 += "/data"
5
6 SRC_URI += " file://issue \
7 file://motd \
8 "
9
10 do_install:append () {
11 install -m 644 ${WORKDIR}/issue ${D}${sysconfdir}/issue
12 install -m 644 ${WORKDIR}/issue.net ${D}${sysconfdir}/issue.net
13 install -m 0644 ${WORKDIR}/motd ${D}${sysconfdir}/motd
14
15 sed -i '/\/media/d' ${D}${sysconfdir}/fstab
16
17 echo "KEYMAP=de-latin1" > ${D}${sysconfdir}/vconsole.conf
18 echo "LANG=en_US.UTF-8" > ${D}/etc/locale.conf
19
20 install -d ${D}${sysconfdir}/profile.d
21 cat > ${D}${sysconfdir}/profile.d/locale.sh <<EOF
22 if [ -r /etc/locale.conf ]; then
23 export \$(cat /etc/locale.conf)
24 fi
25 EOF
26
27 cat > ${D}${sysconfdir}/profile.d/color.sh << EOF
28 export CLICOLOR=1
29 EOF
30
31 cat > ${D}${sysconfdir}/profile.d/editor.sh << EOF
32 export EDITOR="vim"
33 export VISUAL=$EDITOR
34 export SYSTEMD_PAGER=
35 EOF
36
37 cat >> ${D}${sysconfdir}/fstab <<EOF
38 /data/config/ssh /home/sarahconnor/.ssh none defaults,bind,nofail 0 0
39 EOF
40 }
41
42 FILES:${PN} += " ${sysconfdir}/profile.d/locale.sh"