diff options
Diffstat (limited to 'projectroot/usr/lib/systemd')
3 files changed, 20 insertions, 15 deletions
diff --git a/projectroot/usr/lib/systemd/system/mnt-data.mount b/projectroot/usr/lib/systemd/system/mnt-data.mount new file mode 100644 index 0000000..4f41816 --- /dev/null +++ b/projectroot/usr/lib/systemd/system/mnt-data.mount @@ -0,0 +1,6 @@ +[Unit] +Description=Mount data partition + +[Mount] +What=/dev/disk/by-usage/data +Where=/mnt/data diff --git a/projectroot/usr/lib/systemd/system/rauc-mark-good.service b/projectroot/usr/lib/systemd/system/rauc-mark-good.service new file mode 100644 index 0000000..89f5659 --- /dev/null +++ b/projectroot/usr/lib/systemd/system/rauc-mark-good.service @@ -0,0 +1,14 @@ +[Unit] +Description=RAUC Good-marking Service +ConditionKernelCommandLine=|bootchooser.active +ConditionKernelCommandLine=|rauc.slot +Requires=boot-complete.target +After=boot-complete.target + +[Service] +Type=oneshot +RemainAfterExit=yes +ExecStart=/usr/bin/rauc status mark-good + +[Install] +WantedBy=multi-user.target diff --git a/projectroot/usr/lib/systemd/system/systemd-autoformat@.service b/projectroot/usr/lib/systemd/system/systemd-autoformat@.service deleted file mode 100644 index 7522140..0000000 --- a/projectroot/usr/lib/systemd/system/systemd-autoformat@.service +++ /dev/null @@ -1,15 +0,0 @@ -[Unit] -Before=mnt-data.mount systemd-fsck@%i.service -Description=Create ext4 Data Partition -ConditionPathExists=/dev/%i - -[Service] -Environment=DATAPARTITION=3 -Type=oneshot -# resize partition to maximum -ExecStart=/bin/sh -c 'echo ",+" | sfdisk --force -N$DATAPARTITION /dev/mmcblk0' -# force kernel to reload the partition size of partition 3 -ExecStart=/usr/sbin/partx -d -n $DATAPARTITION /dev/mmcblk0 -ExecStart=/usr/sbin/partx -a -n $DATAPARTITION /dev/mmcblk0 -# create filesystem (this service is only started if we have none) -ExecStart=/sbin/mkfs.ext4 /dev/%i |