fstab: Only overlay /etc/ssh

There's really no sense in creating a writable copy of the whole `/etc`
hierarchy at `/run/etc/rw`.  Instead, let's just mount overlays at the
paths we want to make writable (which for now is only `/etc/ssh`).
This commit is contained in:
2023-02-14 21:05:54 -06:00
parent f182a4329b
commit fe3cc25f6b
2 changed files with 2 additions and 2 deletions

View File

@@ -28,6 +28,7 @@ format_dev() {
mount "${dev}" "${tmpdir}" || exit
btrfs subvolume create "${tmpdir}"/etc || exit
mkdir -p "${tmpdir}"/etc/.work "${tmpdir}"/etc/rw || exit
mkdir -p "${tmpdir}"/etc/rw/ssh
btrfs subvolume create "${tmpdir}"/var || exit
btrfs subvolume create "${tmpdir}"/var/log || exit
umount "${dev}" || exit