diff options
| author | PeterLawler <relwalretep@gmail.com> | 2020-08-15 05:06:18 +0000 |
|---|---|---|
| committer | Gunnar Wolf <gwolf@debian.org> | 2020-08-15 05:06:18 +0000 |
| commit | dd3b33419c13262b5ded48659d27e3c47b4ff15d (patch) | |
| tree | 0b9ece9b8594320cfd90331ec1c546a1d376cd9e /rootfs/etc/systemd | |
| parent | 0cf508221ff8972d58cd61db710e88ff072cbf61 (diff) | |
rootfs subdirectory
Diffstat (limited to 'rootfs/etc/systemd')
| -rw-r--r-- | rootfs/etc/systemd/system/rpi-generate-ssh-host-keys.service | 10 | ||||
| -rw-r--r-- | rootfs/etc/systemd/system/rpi-resizerootfs.service | 13 | ||||
| -rw-r--r-- | rootfs/etc/systemd/system/rpi-set-sysconf.service | 9 |
3 files changed, 32 insertions, 0 deletions
diff --git a/rootfs/etc/systemd/system/rpi-generate-ssh-host-keys.service b/rootfs/etc/systemd/system/rpi-generate-ssh-host-keys.service new file mode 100644 index 0000000..496f2c4 --- /dev/null +++ b/rootfs/etc/systemd/system/rpi-generate-ssh-host-keys.service @@ -0,0 +1,10 @@ +[Unit] +Description=generate SSH host keys +ConditionPathExistsGlob=!/etc/ssh/ssh_host_*_key + +[Service] +Type=oneshot +ExecStart=/usr/sbin/dpkg-reconfigure -fnoninteractive openssh-server + +[Install] +RequiredBy=multi-user.target diff --git a/rootfs/etc/systemd/system/rpi-resizerootfs.service b/rootfs/etc/systemd/system/rpi-resizerootfs.service new file mode 100644 index 0000000..089aecc --- /dev/null +++ b/rootfs/etc/systemd/system/rpi-resizerootfs.service @@ -0,0 +1,13 @@ +[Unit] +Description=resize root file system +Before=local-fs-pre.target +DefaultDependencies=no + +[Service] +Type=oneshot +TimeoutSec=infinity +ExecStart=/usr/sbin/rpi-resizerootfs +ExecStart=/bin/systemctl --no-reload disable %n + +[Install] +RequiredBy=local-fs-pre.target diff --git a/rootfs/etc/systemd/system/rpi-set-sysconf.service b/rootfs/etc/systemd/system/rpi-set-sysconf.service new file mode 100644 index 0000000..46bddcf --- /dev/null +++ b/rootfs/etc/systemd/system/rpi-set-sysconf.service @@ -0,0 +1,9 @@ +[Unit] +Description=Set up system configuration + +[Service] +Type=oneshot +ExecStart=/usr/local/sbin/rpi-set-sysconf + +[Install] +RequiredBy=basic.target |
