chore(deck): Remove useless system storage check when formatting

There isn't a case where we'd ever be working with anything but a
micro SD card
This commit is contained in:
RJ Trujillo 2023-07-10 17:06:42 -06:00
parent 2c4128099c
commit c13d8b6b05

View File

@ -36,12 +36,6 @@ if [[ ! -e "$STORAGE_DEVICE" ]]; then
exit 19 #ENODEV
fi
# Prevent accidental formatting of system drives
if [[ $(lsblk -d -n -r -o hotplug "$STORAGE_DEVICE") != "1" ]]; then
echo "$STORAGE_DEVICE is not a hotplug device"
exit 19 #ENODEV
fi
STORAGE_PARTBASE="${STORAGE_PARTITION#/dev/}"
systemctl stop steamos-automount@"$STORAGE_PARTBASE".service