diff options
author | Simon Rettberg | 2019-02-26 14:05:41 +0100 |
---|---|---|
committer | Simon Rettberg | 2019-02-26 14:05:41 +0100 |
commit | 2278cbe8e3c3aec7b58201105b326bae260cc654 (patch) | |
tree | 4d387fb2d14071827198cb7b1cdf5dbc35fb1513 /core/rootfs/rootfs-stage32/data/opt/openslx | |
parent | [run-virt] SLX_VM_MUTED -> SLX_VM_SOUND (diff) | |
download | mltk-2278cbe8e3c3aec7b58201105b326bae260cc654.tar.gz mltk-2278cbe8e3c3aec7b58201105b326bae260cc654.tar.xz mltk-2278cbe8e3c3aec7b58201105b326bae260cc654.zip |
[hardware-stats/rootfs-stage32] Ignore USB sticks/HDDs
Diffstat (limited to 'core/rootfs/rootfs-stage32/data/opt/openslx')
-rwxr-xr-x | core/rootfs/rootfs-stage32/data/opt/openslx/scripts/systemd-setup_partitions | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/rootfs/rootfs-stage32/data/opt/openslx/scripts/systemd-setup_partitions b/core/rootfs/rootfs-stage32/data/opt/openslx/scripts/systemd-setup_partitions index 95709bbf..6a9ebfd4 100755 --- a/core/rootfs/rootfs-stage32/data/opt/openslx/scripts/systemd-setup_partitions +++ b/core/rootfs/rootfs-stage32/data/opt/openslx/scripts/systemd-setup_partitions @@ -162,7 +162,7 @@ if ! has_hdd; then fi 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 fdisk -l "$( readlink -f "$disk" )" done > "$PARTITION_FILE" |