@@ -10,16 +10,14 @@ inherit dpkg-raw
DESCRIPTION = "This service enables fsck on first boot"
DEBIAN_DEPENDS = "systemd, sed, mount, initramfs-tools"
+DEBIAN_SYSTEMD_SERVICE = "enable-fsck.service"
SRC_URI = " \
file://enable-fsck.service \
file://enable-fsck.sh \
- file://postinst"
+ "
do_install() {
- install -d -m 755 ${D}/lib/systemd/system
- install -m 644 ${WORKDIR}/enable-fsck.service ${D}/lib/systemd/system/
-
install -d -m 755 ${D}/usr/share/enable-fsck
install -m 755 ${WORKDIR}/enable-fsck.sh ${D}/usr/share/enable-fsck/
}
deleted file mode 100644
@@ -1,3 +0,0 @@
-#!/bin/sh
-
-systemctl enable enable-fsck.service
@@ -11,16 +11,13 @@ DESCRIPTION = "This service grows the last partition to the full medium during f
MAINTAINER = "isar-users <isar-users@googlegroups.com>"
DEBIAN_DEPENDS = "systemd, sed, grep, coreutils, mount, e2fsprogs, fdisk (>=2.29.2-3) | util-linux (<2.29.2-3), util-linux"
+DEBIAN_SYSTEMD_SERVICE = "expand-on-first-boot.service"
SRC_URI = " \
file://expand-on-first-boot.service \
file://expand-last-partition.sh \
- file://postinst"
-
+ "
do_install() {
- install -d -m 755 ${D}/lib/systemd/system
- install -m 644 ${WORKDIR}/expand-on-first-boot.service ${D}/lib/systemd/system/
-
install -d -m 755 ${D}/usr/share/expand-on-first-boot
install -m 755 ${WORKDIR}/expand-last-partition.sh ${D}/usr/share/expand-on-first-boot/
}
deleted file mode 100644
@@ -1,3 +0,0 @@
-#!/bin/sh
-
-systemctl enable expand-on-first-boot.service
@@ -5,6 +5,7 @@ DESCRIPTION = "Systemd service to regenerate sshd keys"
MAINTAINER = "isar-users <isar-users@googlegroups.com>"
DEBIAN_DEPENDS = "openssh-server, systemd"
+# postinst also removes exiting ssh keys
SRC_URI = "file://postinst \
file://sshd-regen-keys.service"