2018-01-18 18:15:21 -05:00
|
|
|
DESCRIPTION = ""
|
|
|
|
LICENSE = "MIT"
|
|
|
|
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
|
|
|
|
SECTION = ""
|
|
|
|
DEPENDS = ""
|
|
|
|
|
2018-03-27 20:40:02 -04:00
|
|
|
SRC_URI = "\
|
|
|
|
file://initrd-release \
|
|
|
|
file://crypttab \
|
|
|
|
file://11-dm.rules \
|
2019-01-15 12:27:17 -05:00
|
|
|
file://citadel-lvm-activate.service \
|
2018-03-27 20:40:02 -04:00
|
|
|
file://citadel-rootfs-mount.path \
|
|
|
|
file://citadel-rootfs-mount.service \
|
2018-12-31 18:41:27 -05:00
|
|
|
file://citadel-rootfs-setup.service \
|
|
|
|
file://citadel-install-rootfs-mount.service \
|
2018-03-27 20:40:02 -04:00
|
|
|
"
|
2018-01-18 18:15:21 -05:00
|
|
|
|
|
|
|
S = "${WORKDIR}"
|
|
|
|
|
2018-03-03 21:37:48 -05:00
|
|
|
dirs755="/boot /dev /usr /usr/bin /usr/sbin /usr/lib /usr/share /etc /proc /run /var /sys /tmp"
|
|
|
|
|
|
|
|
|
2018-01-18 18:15:21 -05:00
|
|
|
do_install() {
|
2018-03-03 21:37:48 -05:00
|
|
|
for d in ${dirs755}; do
|
|
|
|
install -m 0755 -d ${D}$d
|
|
|
|
done
|
|
|
|
|
|
|
|
install -d ${D}${systemd_system_unitdir}
|
2019-01-15 12:27:17 -05:00
|
|
|
install -m 644 ${WORKDIR}/citadel-lvm-activate.service ${D}${systemd_system_unitdir}
|
2018-03-27 21:48:58 -04:00
|
|
|
install -m 644 ${WORKDIR}/citadel-rootfs-mount.path ${D}${systemd_system_unitdir}
|
2018-03-03 21:37:48 -05:00
|
|
|
install -m 644 ${WORKDIR}/citadel-rootfs-mount.service ${D}${systemd_system_unitdir}
|
2018-12-31 18:41:27 -05:00
|
|
|
install -m 644 ${WORKDIR}/citadel-rootfs-setup.service ${D}${systemd_system_unitdir}
|
|
|
|
install -m 644 ${WORKDIR}/citadel-install-rootfs-mount.service ${D}${systemd_system_unitdir}
|
2018-03-27 21:48:58 -04:00
|
|
|
|
|
|
|
install -d ${D}${systemd_system_unitdir}/sysinit.target.wants
|
|
|
|
ln -s ../citadel-rootfs-mount.path ${D}${systemd_system_unitdir}/sysinit.target.wants/citadel-rootfs-mount.path
|
2018-12-31 18:41:27 -05:00
|
|
|
ln -s ../citadel-rootfs-setup.service ${D}${systemd_system_unitdir}/sysinit.target.wants/citadel-rootfs-setup.service
|
|
|
|
ln -s ../citadel-install-rootfs-mount.service ${D}${systemd_system_unitdir}/sysinit.target.wants/citadel-install-rootfs-mount.service
|
|
|
|
|
2018-01-18 18:15:21 -05: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
|
2018-12-31 18:41:27 -05:00
|
|
|
|
2018-01-18 18:15:21 -05:00
|
|
|
install -d ${D}/dev
|
|
|
|
mknod -m 622 ${D}/dev/console c 5 1
|
2018-12-31 18:41:27 -05:00
|
|
|
mknod -m 644 ${D}/dev/loop0 b 7 0
|
2018-01-18 18:15:21 -05:00
|
|
|
}
|
|
|
|
|
2022-05-28 11:20:07 -04:00
|
|
|
FILES:${PN} += "/dev/console /boot /dev /usr /etc /proc /run /sys /tmp"
|
2018-01-18 18:15:21 -05:00
|
|
|
|
2022-05-28 11:20:07 -04:00
|
|
|
pkg_postinst:${PN}() {
|
2018-01-18 18:15:21 -05:00
|
|
|
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
|