2018-01-18 23:15:21 +00:00
|
|
|
DESCRIPTION = ""
|
|
|
|
LICENSE = "MIT"
|
|
|
|
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
|
|
|
|
SECTION = ""
|
|
|
|
DEPENDS = ""
|
|
|
|
|
2018-03-04 02:37:48 +00:00
|
|
|
SRC_URI = "file://initrd-release file://crypttab file://11-dm.rules file://citadel-rootfs-mount.service"
|
2018-01-18 23:15:21 +00:00
|
|
|
|
|
|
|
S = "${WORKDIR}"
|
|
|
|
|
2018-03-04 02:37:48 +00:00
|
|
|
dirs755="/boot /dev /usr /usr/bin /usr/sbin /usr/lib /usr/share /etc /proc /run /var /sys /tmp"
|
|
|
|
|
|
|
|
|
2018-01-18 23:15:21 +00:00
|
|
|
do_install() {
|
2018-03-04 02:37:48 +00:00
|
|
|
for d in ${dirs755}; do
|
|
|
|
install -m 0755 -d ${D}$d
|
|
|
|
done
|
|
|
|
|
|
|
|
install -d ${D}${systemd_system_unitdir}
|
|
|
|
install -m 644 ${WORKDIR}/citadel-rootfs-mount.service ${D}${systemd_system_unitdir}
|
2018-01-18 23:15:21 +00:00
|
|
|
install -d ${D}${sysconfdir}
|
|
|
|
install -m 644 ${WORKDIR}/initrd-release ${D}${sysconfdir}
|
|
|
|
install -m 644 ${WORKDIR}/crypttab ${D}${sysconfdir}
|
|
|
|
install -d ${D}${sysconfdir}/udev/rules.d
|
|
|
|
install -m 644 ${WORKDIR}/11-dm.rules ${D}${sysconfdir}/udev/rules.d
|
|
|
|
install -d ${D}/dev
|
|
|
|
mknod -m 622 ${D}/dev/console c 5 1
|
|
|
|
}
|
|
|
|
|
2018-03-04 02:37:48 +00:00
|
|
|
FILES_${PN} += "/dev/console /boot /dev /usr /etc /proc /run /sys /tmp"
|
2018-01-18 23:15:21 +00:00
|
|
|
|
|
|
|
pkg_postinst_${PN}() {
|
|
|
|
ln -sf initrd-release $D${sysconfdir}/os-release
|
|
|
|
ln -sf ${systemd_system_unitdir}/initrd.target $D${systemd_system_unitdir}/default.target
|
|
|
|
> $D${sysconfdir}/fstab
|
|
|
|
}
|
|
|
|
|
|
|
|
inherit allarch
|