rootfs subdirectory

This commit is contained in:
PeterLawler
2020-08-15 05:06:18 +00:00
committed by Gunnar Wolf
parent 0cf508221f
commit dd3b33419c
9 changed files with 8 additions and 8 deletions

5
rootfs/etc/fstab Normal file
View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -0,0 +1,9 @@
[Unit]
Description=Set up system configuration
[Service]
Type=oneshot
ExecStart=/usr/local/sbin/rpi-set-sysconf
[Install]
RequiredBy=basic.target