summaryrefslogtreecommitdiffstats
path: root/core/modules/hardware-stats/data
diff options
context:
space:
mode:
authorSimon Rettberg2019-02-26 14:05:41 +0100
committerSimon Rettberg2019-02-26 14:05:41 +0100
commit2278cbe8e3c3aec7b58201105b326bae260cc654 (patch)
tree4d387fb2d14071827198cb7b1cdf5dbc35fb1513 /core/modules/hardware-stats/data
parent[run-virt] SLX_VM_MUTED -> SLX_VM_SOUND (diff)
downloadmltk-2278cbe8e3c3aec7b58201105b326bae260cc654.tar.gz
mltk-2278cbe8e3c3aec7b58201105b326bae260cc654.tar.xz
mltk-2278cbe8e3c3aec7b58201105b326bae260cc654.zip
[hardware-stats/rootfs-stage32] Ignore USB sticks/HDDs
Diffstat (limited to 'core/modules/hardware-stats/data')
-rwxr-xr-xcore/modules/hardware-stats/data/opt/openslx/scripts/systemd-hardware_stats2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/modules/hardware-stats/data/opt/openslx/scripts/systemd-hardware_stats b/core/modules/hardware-stats/data/opt/openslx/scripts/systemd-hardware_stats
index f2076bb3..76adb3d4 100755
--- a/core/modules/hardware-stats/data/opt/openslx/scripts/systemd-hardware_stats
+++ b/core/modules/hardware-stats/data/opt/openslx/scripts/systemd-hardware_stats
@@ -180,7 +180,7 @@ echo "Temp partition: $ID44 MB"
FDISK=$(mktemp)
declare -a DISKS
shopt -s extglob
-for disk in /dev/disk/by-path/!(*-part*); do
+for disk in /dev/disk/by-path/!(*-part*|*-usb-*); do
[ -L "$disk" ] || continue
disk="$( readlink -f "$disk" )"
DISKS+=("$disk")