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 | |
| parent | 0cf508221ff8972d58cd61db710e88ff072cbf61 (diff) | |
rootfs subdirectory
Diffstat (limited to 'rootfs/etc')
| -rw-r--r-- | rootfs/etc/fstab | 5 | ||||
| -rw-r--r-- | rootfs/etc/network/interfaces.d/eth0 | 7 | ||||
| -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 |
5 files changed, 44 insertions, 0 deletions
diff --git a/rootfs/etc/fstab b/rootfs/etc/fstab new file mode 100644 index 0000000..dc417c7 --- /dev/null +++ b/rootfs/etc/fstab @@ -0,0 +1,5 @@ +# The root file system has fs_passno=1 as per fstab(5) for automatic fsck. +LABEL=RASPIROOT / ext4 rw 0 1 +# All other file systems have fs_passno=2 as per fstab(5) for automatic fsck. +LABEL=RASPIFIRM /boot/firmware vfat rw 0 2 +proc /proc proc defaults 0 0 diff --git a/rootfs/etc/network/interfaces.d/eth0 b/rootfs/etc/network/interfaces.d/eth0 new file mode 100644 index 0000000..910e081 --- /dev/null +++ b/rootfs/etc/network/interfaces.d/eth0 @@ -0,0 +1,7 @@ +auto eth0 + +# TODO: switch back to iptables-persistent once it re-enters testing +iface eth0 inet dhcp +# We don't currently support setup of firewalls here. +# pre-up iptables-restore < /etc/iptables/rules.v4 +# pre-up ip6tables-restore < /etc/iptables/rules.v6 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 |
