fstab udev

This commit is contained in:
2025-11-23 00:18:46 +01:00
parent ab556dc297
commit 68b65dd039
6 changed files with 75 additions and 0 deletions

33
fstab Normal file
View File

@@ -0,0 +1,33 @@
# You can use "dietpi-drive_manager" to setup mounts.
# NB: It overwrites and re-creates physical drive mount entries on use.
#----------------------------------------------------------------
# NETWORK
#----------------------------------------------------------------
#----------------------------------------------------------------
# TMPFS
#----------------------------------------------------------------
#tmpfs /tmp tmpfs size=30M,noatime,lazytime,nodev,nosuid,mode=1777
#tmpfs /var/log tmpfs size=30M,noatime,lazytime,nodev,nosuid
tmpfs /dev/shm tmpfs defaults,size=10M 0 0
tmpfs /run tmpfs defaults,size=30M 0 0
/dev/zram0 /var/log ext4 noatime,lazytime,nodev,nosuid 0 0
/dev/zram1 /tmp ext4 noatime,lazytime,nodev,nosuid 0 0
#----------------------------------------------------------------
# MISC: ecryptfs, vboxsf, glusterfs, mergerfs, bind, Btrfs subvolume
#----------------------------------------------------------------
#----------------------------------------------------------------
# SWAP SPACE
#----------------------------------------------------------------
/var/swap none swap sw
#----------------------------------------------------------------
# PHYSICAL DRIVES
#----------------------------------------------------------------
PARTUUID=37fb515b-02 / ext4 noatime,lazytime,rw 0 1
PARTUUID=37fb515b-01 /boot/firmware vfat noatime,lazytime,rw 0 2

20
udev/iocost.conf Normal file
View File

@@ -0,0 +1,20 @@
# This file is part of systemd.
#
# systemd is free software; you can redistribute it and/or modify it under the
# terms of the GNU Lesser General Public License as published by the Free
# Software Foundation; either version 2.1 of the License, or (at your option)
# any later version.
#
# Entries in this file show the compile time defaults. Local configuration
# should be created by either modifying this file (or a copy of it placed in
# /etc/ if the original file is shipped in /usr/), or by creating "drop-ins" in
# the /etc/udev/iocost.conf.d/ directory. The latter is generally recommended.
# Defaults can be restored by simply deleting the main configuration file and
# all drop-ins located in /etc/.
#
# Use 'systemd-analyze cat-config udev/iocost.conf' to display the full config.
#
# See iocost.conf(5) for details.
[IOCost]
#TargetSolution=naive

View File

@@ -0,0 +1,6 @@
#ACTION=="add", KERNEL=="zram0", ATTR{initstate}=="0", ATTR{comp_algorithm}="zstd", ATTR{disksize}="40M", RUN+="/usr/sbin/mkfs.ext4 /dev/zram0", TAG+="systemd"
KERNEL=="zram0", SUBSYSTEM=="block", DRIVER=="", ACTION=="add", ATTR{disksize}="40M", RUN+="/sbin/mkfs.ext4 $env{DEVNAME}"
KERNEL=="zram1", SUBSYSTEM=="block", DRIVER=="", ACTION=="add", ATTR{disksize}="40M", RUN+="/sbin/mkfs.ext4 $env{DEVNAME}"
KERNEL=="zram2", SUBSYSTEM=="block", DRIVER=="", ACTION=="add", ATTR{disksize}="40M", RUN+="/sbin/mkfs.ext4 $env{DEVNAME}"

View File

@@ -0,0 +1 @@
/dev/null

View File

@@ -0,0 +1,4 @@
SUBSYSTEM=="tty", ATTRS{idVendor}=="03eb", ATTRS{idProduct}=="204b", ATTRS{product}=="CUL868", SYMLINK+="cul", GROUP="dialout", TAG+="systemd"
SUBSYSTEM=="tty", ATTRS{idVendor}=="03eb", ATTRS{idProduct}=="204b", ATTRS{product}=="TCM310", SYMLINK+="tcm", GROUP="dialout", TAG+="systemd"
SUBSYSTEM=="tty", ATTRS{idVendor}=="1a86", ATTRS{idProduct}=="55d4", ATTRS{product}=="SONOFF Zigbee 3.0 USB Dongle Plus V2", SYMLINK+="zigb", GROUP="dialout", TAG+="systemd"
SUBSYSTEM=="tty", ATTRS{idVendor}=="1a86", ATTRS{idProduct}=="7523", SYMLINK+="ow", TAG+="systemd"

11
udev/udev.conf Normal file
View File

@@ -0,0 +1,11 @@
# see udev.conf(5) for details
#
# udevd is also started in the initrd. When this file is modified you might
# also want to rebuild the initrd, so that it will include the modified configuration.
#udev_log=info
#children_max=
#exec_delay=
#event_timeout=180
#timeout_signal=SIGKILL
#resolve_names=early